Import AD module
Hi,I have Exchange 2007 hub server (2003 64 R2), in PS exchange management shell I'm trying to run:Import-Module activedirectoryI get an error :Import-Module : The specified module 'activedirectory'...
View ArticleHow to get Operating system details for linux VM?
Hi, Im using GetsummaryInformation() in powershell script to get the Guest Os operating system details. But it is empty when the machine is offline or it is Linux. It is giving output only when the...
View ArticleNew-PSDrive for URL
HiIs it possible to create a new PSDrive to a URL? I'm trying to script the copying of documents to SharePoint 2010 libraries from a windows 7 desktop machine. I have tried the usual map network drive...
View Articlen00b here.. Question about something really simple (i think)
Hi all :)I have a question;Consider this:I have a folder called TEST\;Underneath there are other folders, like A, B, C.In each folder, there is a file called...
View ArticleHow to find all hostnames in DNS belong to single IP?
For example.. I have two A records which belong to 1.1.1.1A.test.com ->1.1.1.1B.test.com ->1.1.1.1How do I use PowerShell to report such IP's which has more than one hostnames?
View ArticleLook for Files on a remote computer and copy files to a locat computer
Here's what I'm attempting to do. Users save their PST files pretty much anywhere on the PC. When I rebuild it I would like this script to search the old computer for PST files and copy them to the new...
View Articlecopy files
This should be easy but I can't get it to work. I want to read a .txt file and in this .txt file I have: \\server1\c$\\server2\c$etc.. I want to create a new folder at the root of c$ for each machine....
View ArticleRead all folders seeking a file
How would I search any/all drivers on a server seeking a certain file? I need to find all *.pst files and find the owner. I know I can use the Get-Acl $MyFile | Format-List to find the owner but how...
View Articleenable powershell on servers
is there a way to remotely enable PS on servers? What I have to do right now is: RDC into remote serverStart CMD as an AdministratorStart PSType in Set-ExecutionPolicy Unrestricted Can you do that...
View ArticleAccess denied on Windows XP
Hello Folks - I'm having an issue in my enviroment where systems running Windows XP do not accept remoting requests and spit out the "access denied" error. invoke-command -Computername CQuitoriano...
View ArticleReport of members of local Administrators group
I found this here: (http://powershell.com/cs/media/p/376.aspx)cls $ErrorActionPreference="SilentlyContinue" Get-Content (ENTER PATH TO YOUR INPUT FILE HERE) | foreach {...
View ArticlePowershell forms - dropdowns - stop people entering their own values?
Powershell forms - dropdowns - stop people entering their own values?Hello,I have finally created a really nice user creation form but one of my last issues is that people using the forms can still...
View Articlesetting a script to run in exchange management shell.
Hello,I have one final question with regards to a new user form. I have a PS1 script that runs without errors and does what I want... but only if I copy the whole thing into exchange management...
View ArticleHaving a problem with a function that replaces text
I was in need of a function that replaces non-English characters with English alphabet equivalents and I found one in the net. I only needed to fill in blanks and it was good to go. Except not.Function...
View ArticleCan PS have a display message while code runs?
In PowerShell is there a way to run a script and have some type of dialog present saying "Script is running, please wait." ?? I am running a script in PowerShell ISE and the only indication I see that...
View ArticleVariables not loading to array - causes duplication in output
This is a continuation from another thread. Below is the code I'm currently using.I've run this, step-by-step, through the debugger in PowerGUI and Powershell Plus. It was easier to see in Powershell...
View ArticleRestart server & then email
I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command: Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...
View ArticleCreating a shortcut as a PIF
Hello,I am trying to create a shortcut however I need the shortcut to be created as a .PIF.Currently I am using the following which will create a shortcut however I cannot get it to work as a .pif as...
View Articlehelp with running batch file on remote computer
Hello guys,i have the local computer called comp1 and the remote computer name comp2i have a batch file on the local computer and i want to run it on the remote computer, I did in both of the...
View ArticleMerging columns from a large CSV file
Hello all,I am trying to find a way to merge the data from several columns from a CSV file and output the result to another CSV file.The data I am working with is stored into a variable and looks like...
View Article