import-csv custom colums
Hi team,I have csv file with more than 100 servers it contans the servername,servertype,platformServerServerTypePlatformtest1terminalserverterminaltest2ttsuseI am trying to get the server which are...
View Articlehow to enable-wsmancredssp on a remote machine using the invoke command
i want to run enable-wsmancredssp on a remote server while my script is running then when i t has finished disable itbut i cant seem to get the command to work even with the -force switchis this even...
View Articlenesting foreach loops for file copy or move
So I've never tried nesting for each loops, but I thought I needed to in order to achieve the results I want.The purpose of this script is to loop through a list of servers and find a directory on each...
View ArticleNot moving within the switch
I am trying to display a message and restart and display a second message. My problem is that it wont get past the 1st part of the switch, it just keeps looping over and over.param($global:Step=1)...
View ArticlePS Script to monitor WinXP remote process...
Hi,I'm looking for a way to run the execute the script below from a single host, via scheduled task to about 100 remote Win XP SP3 workstations. I know I can reference a csv file in my script, but I'm...
View ArticleError whilw runing: Enable-PSRemoting -f
I was trying to install the MBCA (best practices analyzer for sql server), and was asked by the system to run the above mentioned PS command. I'm not familiar with PS, but ran it as I was asked, and an...
View ArticleDomain unjoin script on windows 7 and windows xpt
The following script works find for domain name change. Is it possible to use powershell script with Domain Admin rights. Because once i apply the following command which will continuously ask the...
View ArticleGet informations from website
Hello,We have one ashx - html page, hostet on IIS 7.5 Website with windows authentication.This site has informations, you can see it at the picture:My question:How can I open this ashx site in...
View ArticleAccess denied when remotely trying with Get-NlbClusterNode
When I locally, on the SMTP Cluster run this command:Get-NlbClusterNode I get the output I need.But if I try the same from a remote server (same network and domain) I get an:[smtp-s001a]: PS...
View ArticlePowerShell - Copy files to user home directory based on OU membership
I am new to PowerShell and have done a few hours of searching and reading but just cant get this.I have built a script to copy a file from one location to multiple users home directory folder based on...
View ArticleCannot retrieved DatabaseSize value Get-MailboxDatabase with C#, remote...
Hi all,I have a client(runing a service) & a server (containt MailExchange server 2010).Currently, I use remote powershell to send command from client to server via C#.I can create a new mailbox,...
View ArticleCreate Child Work Item
Hello,I have this script, which is working fine, to create a work item at Team Foundation Server.cls if ( (Get-PSSnapin -Name Microsoft.TeamFoundation.PowerShell -ErrorAction SilentlyContinue) -eq...
View ArticlePowershell ODBC + PostgreSQL + INSERT query
Hi!I would like to send INSERT query to Postgre SQL. I've installed psqlODBC_x64 and configured System DSN ODBC Connection.My powershell v3 function for query like SELECT works well:function...
View ArticleGet-FileHash in PowerShell 4.0 -- output in HEX characters please!!!
Please, it's not too late! Please change the output of Get-FileHash in PowerShell 4.0 so that the hash is shown as hexadecimal characters like in EVERY other hashing tool in the history of the earth....
View ArticleRandom sampling powershell script for Office 365
I downloaded the random sampling script from Microsoft and am using the online script. My goal is to be able to pull a random sample of emails from a set of users for someone to review. No search...
View Articledifferent datatype for same parameter
I have Powershell functions which are working as cmdlets.My functions may get a string or an array of strings as value for the same parameter. is there any way to use some type of overloading and not...
View Articlecombine two get wmi-object commands in one script
Hello I had no luck searching for this on line, and was hoping someone could help me out. Its probably something syntax im missing but , im trying to get Two different WMI info in one script. the...
View Articlealternative way to map a drive letter to a shared folder
Unfortunately none of the above meets my case and it gets more puzzling as I go forward. Our office does not have a Domain, just a plain Workgroup. We have two Servers, one 2008 R1 one 2008...
View ArticleDisplay Name for User Accounts via Powershell
Greetings! I have been importing User Accounts and am trying to get the accounts to display correctly within the OU. My CSV file has a column with display name and it includes something to the affect...
View ArticleMove files to a new folder older thand 7 days
Hi,Need some help.Below PS script to move files older than 7 days does not work and ends with error$Source_path = "D:\07" $max_days = "-7" $curr_date = Get-Date $Move_date =...
View Article