Can't remote computer-to-computer using PowerShell
Hello. My issue is that I can't seem to connect computer-to-computer using Powershell. We are using Windows 7 computers on our domain with Windows 2008R2 servers. From my computer I can establish a...
View ArticleAdd routes remotely Via Powershell
I have csv file that contains computer name and defaultipgateway i need to add the routes on this servre but i am receiving error while doing it remotely below is my script $ADDs = Import-Csv...
View ArticlePowershell script to detect when PC is turned on & Connected to domain
HiWonder if anyone can advise.I would like to run a powershell script (Say every 30 mins) that will check if a Windows PC (Notebook) is connected to the domain and email me an alert with the PC name...
View ArticleGet-ADUser Excluding Specific Groups
I'm using Get-ADUser to retrieve all of the users in the DC except those in three specific groups previously defined using their distinguished name. The below returns 14 users when it should return...
View ArticleSwitching O365 licenses by PowerShell
I've read various posts that say you can lose a user's email by turning off one license and turning on another license for the same user. I made this PowerShell script and it seemed safe on the few...
View ArticleTrying to install IIS Powershell snap-in
Installed Powershell 4.0 on our Win2008 servers. Wanting to install IIS powershell snap-in to help automate IIS management.Went to this...
View ArticleWait for download to complete, then copy the file to a new location
I am downloading some files with PowerShell using webclient.downloadfileasync. Im using "Start-sleep -s 10" to prevent the files to be copied before it is completed, but sometimes the download takes...
View ArticleWebAdministration provider / IIS binding quesion
Working on a ps 4.0 script to import an SSL cert and create the SSL binding in IIS. I want to check if the https binding already exists before adding it.Here is the code to add the SSL binding for IIS...
View ArticleUnable to find type [System.Managemet.Automation.PSCredential]
Hello,I have module which has one of the parameters of type System.Managemet.Automation.PSCredential and yet when I try to run it complains about module being unknown. Not sure what's going on here....
View ArticleAsserting required Powershell version?
Is there a way to make my custom Powershell script assert that it requires Powershell 4.0 to run successfully?scott
View Articleattribute seems to give byte array. How to convert to string?
Hello all,When I view an attribute in ADUC, it appears as text. When I pull the same attribute up in PowerShell, it displays like so:I'm guessing this is a byte array? Is there any way to convert this...
View ArticleWhen calling powershell from a script it always runs in a Administrator...
When calling powershell from a script it always runs in a Administrator Powershell Window is there a command to run in normal Powershell Window and not as Administator ?Thanks
View ArticleRebooting multiple servers as same time via PowerShell?
We want to reboot 30+ servers at the same time. This heart of the matter comes down to this script.get-content c:\Servers.txt | %{Restart-computer –computername $_ –force} But is using PowerShell...
View ArticleRestart several servers in parallel, email & verify services
I'm trying to come up with a script to restart several servers that I can list in a txt file. I can't restart them one at a time, as the request is to restart them all at the same time.Next I need to...
View ArticleFunction not working on Powershell v1
Hi All, I found this great function online that will change the colour of an HTML table cell based on value. It works great when testing (powershell v2) however our prod servers are running Powershell...
View Articlecpu utilization command in powershell
Hi All,I am having multiple servers,i need to get the cpu utilization for each server using power shell.can any one help on this power shell command .how to get the exact cpu utilization.Regards,Phani.
View ArticleScript to check list of servers for 32 bit os or 64 bit
Is there a script to check my list of servers to check for what os is installed. It should say windows 2003 64 bit windows 2003 32 bit or windows 2008 R2
View ArticleDownload multiple files simultanously using an access database as url source?
I have an access database with a bunch of url's that points to images. What i want to do is to create a script that goes through my database and downloads all of the images simultanously.I have tried...
View ArticleSearch and Replace text in file using PowerShell
I want to schedule a script in PowerShell to search a directory for an XML file for a particular text string and replace it with a different text string and then save the file with the same name, the...
View Articleputting a massive amount of data into a single variable
I'm running a command to find the amount of space .xar files (it's a Citrix temp file of sort) are using on my organization's main file server. The server itself presents quite a few terabytes of data...
View Article