Quantcast
Browsing all 21975 articles
Browse latest View live

Missing Get-WindowsFeature cmdlet on Windows 8.1 Enterprise

Hi Just installed Windows 8.1 Enterprise. I don't have the cmdlet "Get-WindowsFeature". I do howerver have "Get-WindowsOptionalFeature" For Windows 2012 R2 I have both.Is WindowsFeature removed on...

View Article


Creating a Sym Link Between two Folders?

HiJust downloaded a script to help link two folders, but not sure if it worked or not.  Not getting any feed back from the-Verboseparam.Function New-SymLink {<# .SYNOPSIS Creates a Symbolic link to...

View Article


automating an RDP connection - before I just use cmdkey.exe and mstsc.exe

Hello,I have to create a function that can initiate an RDP connection to remote servers.. I know it can be done using cmdkey.exe and mstsc.exe directly, I've seen examples using that method. However...

View Article

Stumped at AutoLogin issue

So I wrote a series of PowerShell scripts that are run after a new PC is imaged.Part1 Determines if VDI or Physical PC and adds to domain if PC (VDI's are already on domain)Prompts for user the PC...

View Article

get-aduser compare attributes inside the -filter parameter

Hello all,What I would like to do is use the -filter parameter of get-aduser to compare 2 attributes within the search itself, instead of having to process the differences afterwards.So here is how I...

View Article


Remove contents of nested folder excluding specific files files (powershell)

I need to remove the contents of a folder with powershell but keep a few files inside nested folders. I have tried witht he remove-item cmdlet but when i use the recurse switch, it ignores my...

View Article

Unable to "MANAGE MSQM" from Failover Cluster Manager when a Clustered MSMQ...

Hi,I am hoping someone would be able to help me as I have looked on the internet for an answer to this. We deploy a number of servers that are configured using Powershell. I am in the process of...

View Article

How To Powershell export sql image file to csv

I don't have a problem connecting to my sql server and extracting data and saving it to an csv file.  I'm using the Export-CSV $file cdmlet. I'm not sure how to export an image my sql2008  server and...

View Article


Recursive query

Hi,I am running a command which collect the information from the log file.dir *.log | select name, ....... etcThis command collect information only where it runs, what change i need to do to collect...

View Article


How to serialize New-WebServiceProxy object

I need some help in serializing a object created by PowerShell New-WebServiceProxy and re-utilize by de-serializing the same object.I am creating the New-WebServiceProxy object using following...

View Article

Do not continue until a file exists in powershell

Hi,I was wondering if there is a method in powershell to get it to continually check whether a file exists and do not progress until it finds it.i.eDO WHILE  c:\flag.txt NOT EXISTSWait 10...

View Article

write-output $var verses just $var

Hello,is there any difference between this:Write-Output $varand just this:$var?and how would those previous examples differ from this:return $var?I know everything that is not directed elsewhere is...

View Article

Decrypt a SecureString on Remote Computer

Hi,I have two systems namely comp1 and comp2, both in same domain. I am using powershell encryption method on comp1, to encrypt a text ad save it to a file. $secure= Read-Host "Enter...

View Article


Using PowerShell 1.0 copy-item GroupPolicy...

Hello everybody,This is my first time posting in this forum and i have encounted an issue i hope you can help i'm trying to create a powershell 1.0 script as this is for Windows XP to copy default...

View Article

how to split a non-fixed size string

Hi Guys I have a lots of user account SIDs string like , what i want is to get the string between the first " and the first"," symbol$string = "S-1-5-XXXXX-XXXXX-XXXX-XXXX,CN=contoso,CN=com"for...

View Article


Is there an Exclude switch for TAKEOWN?

I have a large number of old XP profile folders and all the new .V2 profile folders in the same directory on a server share.Unfortunately when these profiles were created, they used default Windows...

View Article

solution to a text file line wrap to enhance readability of the text?

Is there a PowerShell solution wrapping text to enhance readability of the text?Perhaps in a form of a script that reads one text file with extra long lines, and produces a text file with lines of a...

View Article


Failover Cluster events through email

Team,I'm trying to get  Windows Server 2008 Failover clustering events through email. I don't see  "Attach a task" option in Clustering events.Could anybody suggest how to accomplish it. Please note...

View Article

how to wrap up New-aduser cmdlet

HelloI've got this line in my scriptnew-aduser -name $cn -GivenName $firstname -Surname $lastName -UserPrincipalName $upn`                                      -SamAccountName $sam -ProfilePath...

View Article

Powershell Get-Eventlog - Unauthorized operation

Hi AllI have a script that retrieves event log from various servers each morning.  It has been working fine for the last 3 years.  However, during the last few days, I noticed that script is failing to...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>