Quantcast
Browsing all 21975 articles
Browse latest View live

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 Article


Add 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 Article


Powershell 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 Article

Get-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 Article

Switching 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 Article


Trying 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 Article

Wait 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 Article

WebAdministration 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 Article


Unable 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 Article


Asserting 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 Article

Image may be NSFW.
Clik here to view.

attribute 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 Article

When 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 Article

Rebooting 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 Article


Restart 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 Article

Function 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 Article


cpu 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 Article

Script 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 Article


Download 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 Article

Search 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 Article

putting 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
Browsing all 21975 articles
Browse latest View live


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