What is powershell code page?
Hello everyone.I ran into difficulty. That's the problem. I need to take the content of the file, add something, something to remove and place the edited text to the clipboard. Everything works fine,...
View Articleproblem running invoke-command on azure powershell
Hi all, I'm new on powershell scripting.i need to do a script to start/stop/status windows service (ej Oracle Listener) after/previus poweron/poweroff a VM. the script then i put on the runbook...
View ArticleWriting a script to enable remote remote wmi for a specific user
Hello there. I am coming from Perl and surely enjoying PS! I am tasked with setting up many servers in w way that allows a service account to be able to connect via wmi. I know how to do manually and...
View Articlehelp with loading SharePoint PSSnapin
do i have to have SharePoint installed in order to load the SharePoint PowerShell snapin?My team has a SharePoint site that we do not manage. However, our SharePoint team is fine with us writing any...
View ArticlePowerShell Trend Reporting, Part 1: Data Gathering
The first step to get an accurate view is to get the most current data.Read More
View ArticlePackage Manager Console Powershell Reference
The Package Manager Console is a PowerShell console within Visual Studio used to interact with NuGet and automate Visual Studio. Note that for more detailed help, you can run the Get-Help CommandName...
View ArticleAWS Weekly snapshots
So I have a script that is kind of plain at the moment, but I am trying to figure out how to have this script take a weekly snapshot of specific severs that include our naming convention and delete old...
View ArticleRegex - Maybe ?
Hi friends, I'm working on a tool that (ultimately renames branches) reads-in a TFS VC server path [$/TeamProject/Branch] and is stored as a variable which will later be mapped to a folder on local...
View Articleselect-string searching for "[]"
Hello,I want to use select-string to look for "![]" in a set of text files, but the error returned is: The string "[]" is not a valid regular expression: parsing "[]" - Unterminated []...
View ArticlePower shell and batch files
Hi,I don't know anything really about power shell but wanted to see if I could get some help. I have a batch file that I created to remove and reinstall SCCM. Here is the code for the batch file.cd\cd...
View ArticleRichtextbox align the property value
Hi I am trying to display the eventlogs using the below wmi and diverting the output to the richtextbox. Everything is working perfectly. However if the message property value is long. It is messing...
View ArticleHow do I get a log file...
Hi Guys,I have a script which removes a folder from a number of servers, names of which are in a .ini file.$VM_names = Get-Content "D:\Scripts\VMnames.ini"ForEach ($VM in $VM_names){ Remove-Item...
View Articlesend results of ping sweep script via email
HiI found this great script , and trying to pipe the results into the body of email.However after spending many hours, i cannot figure it out!here's the script$Subnet = "192.168.0"$MinAddress =...
View Articleget-aduser -filter doesn't show users in OUs and SubOUs
hi friends in my Active Directory, in default "Users" container, have created a group named "helpdesks". i have also some OUs and SubOus which each contains some users. i need to get all users in my...
View Articlebackup pst files
I made script for backup pst file on local disk-second partition in folder backuppst. I copied this script on three machine and I tryed that start but every time I receive error. My script...
View Articleinvoke web request, login not working
is there a good way to see exactly where I'm getting hung up during the process of a login automation using while invoke web...
View ArticleNuGet Frequently Asked Questions
NuGet requires Visual Studio 2010 Pro/Premium/Ultimate (or newer), Visual Web Developer Express 2010, or any Express SKU of Visual Studio 2012 (or newer)Read More
View ArticlePowerShell Category in January 2015 TechNet Guru
This year 2015 is a great start for PowerShell lovers. TechNet Wiki launched PowerShell category in January 2015 TechNet Guru. PowerShell is one of the most consistent content shared in TechNet Wiki...
View Articlewhere-object with two condition doesn't work in comparison statement form
hi friendswhen i run this command in script block mode, it works fine:Get-service |where{ $_.Name-like 'win*'-and $_.Status-eq 'running'} but if i run the the same code in the comparison statement...
View ArticlePowershell scripting Merge VHD Help
Hi all, I was wondering if there is a way that powershell will automate these steps(Recovering Your Virtual Machine. How to Manually Merge Hyper-V Snapshots Back into one VHD)?...
View Article