How to get list of all local profile sizes in domain
I'm planning to switch most of the users at my company over to thin clients in a terminal server environment and I'm trying to calculate how much disk space I will need on my SAN for their profiles...
View ArticleComparison operators and test-connection vs System.net.DNS
I have a script that gets a list of computers from AD (using get-qadcomputer), and then foreach object will use the test-connection cmdlet. It will then take the IPV4address property and run that...
View Articleinteraction between elevated PS session and non-elevated processes
Mighty all, I'm trying to leverage the following code to interact with instances of powerpoint running on a system[Runtime.InteropServices.Marshal]::GetActiveObject('Powerpoint.Application')All works...
View Articledrop last line of each file processed
Is there a way as i;m processing files can I drop the last line of each file before I write it? The last record in each of files I process is a total record which I don't want to include in my final...
View ArticleRetrieve event log entries from remote PC?
I need to retrieve the top N "Application" event log entries for a given remote machine. Specifically, I need the Time, Source, and Message (non-truncated) column outputs. How best to do this?thanks
View ArticleThe WinRM client cannot complete the operation within the time specified.
Hi,I'm trying to run a powershell script on a Virtual Machine remotely (From the Hyper-V host).Here is the powershell script:Enable-PSRemoting -force $TestAdminCred1 = New-Object...
View ArticleRun Powershell script as Scheduled task, that uses Excel COM object
What am I missing here.. I have Powershell script that uses the Quest AD cmdlets to get computer information from AD and populate an Excel spreadsheet with the data.The script works fine, so I created...
View ArticleSkip the 6 last lines of the TXT file
I have many TXT files (originally CSV files) like...
View ArticleDetermine if policy is applied to remote PC using gpresult
I am still learning Powershell (after using vbscript for many years) and still trying to wrap my head around different ways of doing things. Right now, I am working on a script to parse the output...
View ArticleHelp parsing output of log file
Hi there, not very strong with powershell however I have pieced this together so far..The output of the code is..WORKSPACE#11.1.2.0] admin 3/13/14 5:04 PM WORKSPACE#11.1.2.0] admin 3/13/14 5:14 PM...
View ArticleHow can get value of registry DWORD value of remote computers with powershell
HII am using below script to get registry of remote computers with powershell but not desired result. $computers = Import-Csv 'C:\New folder\dclist.csv' $key = "SOFTWARE\Microsoft\Active...
View ArticleList all folders only if there are no lower level folders or files
I have a simple query that lists all folders recursively that do not contain any files within them. I also need to filter it so that it only lists folders that also do not have any sub-folders. The...
View Article1..5|.{process{$_ * 2}} # what is this exactly?
What is the difference between these two PowerShell statements? The first used the ForEach-Object cmdlet in a way that I'm used to by now, but the second is something new to me.<#c:#>...
View Article[Forum FAQ] Introduce Windows Powershell Remoting
This article will introduce three methods of Windows Powershell Remoting:Method 1: WMIRemoting Cmdlet: Get-WMIObjectProtocols: WMI/RPC/DCOMPort: Random portData Encryption: Clear textNote: No need of...
View ArticleAssistance with bringing two scripts together
Hello,I have the following script that will successfully give me the IP address, DNS, Netmask, MAC Address etc for my VM's. I want to add to this script the following:To show free space for each drive...
View ArticleCreating Virtual Directories in IIS 7 and Converting to a folder to Web...
I have got the basic understanding of creating a IIS Website through Powershell. Now I am having a problem with the following; - I need to create a virtual directory that has the connect as option, so...
View ArticleException calling "Find"
I have a script that does a nice check to see if two groups belong to admins group on each server.It kind of works apart from , if there is a server is the list that in no longer in AD , it returns the...
View Articlewait for user input
HiWhats the powershell command to pause the script and the script continue as soon as use hit enter?
View ArticleWSUS Client Set up Non Domain
Hello,I would like some help in finding out the best method to configure non-domain windows operating systems on a WSUS server. I test various systems that may include a windows home operating system....
View ArticleError cannot load windows powershell snap-in coexistance-configuration -...
Hi I have a powershell script on Windows Server 2008 R2 that will force the directory synchronization. I am trying to run C:\Program Files\Windows Azure Active Directory Sync\DirSyncConfigShell.psc1...
View Article