Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

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 Article


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


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

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

PowerShell Trend Reporting, Part 1: Data Gathering

The first step to get an accurate view is to get the most current data.Read More 

View Article


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

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

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


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


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

Image may be NSFW.
Clik here to view.

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

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

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


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

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


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

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


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

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

Powershell 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
Browsing all 6937 articles
Browse latest View live