Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

PowerShell Help needed.

Create a command that gets the total amount of VM & CPU time of all processes and export it to an html file. Make it so the output file only displays "Count", "Sum", and "Property" fields.Create a...

View Article


Newbie question on changing reg keys

We have been asked to add/change a registry key on our servers by the vendor of an application we use named BrokerApp The key is [HKLM\SYSTEM\CurrentControlSet\Services\BrokerApp\parameters\logon] The...

View Article


need some assistance on this project

I'm working on this project and not coming out the way I like. Some advice would be appreciated. This is the project:Using Get-ChildItem and sorting with Sort-Object in a pipeline, return an array of...

View Article

Get public folder item count command takes forever

HiAm running the below command and for about 20 folders having about 2000 items it takes more than an hour to complete$pffolder has the publicfolder pathpffolders= get-content <text file having...

View Article

Running hidden power shell

I am trying to run a script, and I can't have a powershell window pop up for it.  I am trying to use the -WindowStyle Hidden when starting, but it is not working for me.  I am using Win7 x64.To test, I...

View Article


Install RDP CAL's and activate RDS Licensing Server 2012 using Powershell

Hi all,I am trying to figure out how to activate an RDS Licensing role and install CAL's on a Windows Server 2012 Standard box. I have created an RDS Deployment, and installed all the necessary roles,...

View Article

Change default gateway using *netipaddress* cmdlet

Hi, is there a way to change the DFG after the IP is assigned to an adapter?I am using Server 2012. I created a new IP using "new-netipaddress -Ipaddress 1.2.3.4 -prefixlength 24 -interfaceindex 10". I...

View Article

Set Extended NTFS Right on Subfolders with Powershell

hello, I am a bloody Newbie and i have a Job to do. For Each User we have a Homedrive on our Filer. In each Homedrive there is a Folder named "SecDocs" (the Name is always the Same) and this Folders...

View Article


SetAccessRule - You cannot call a method on a null-valued expression.

Hi,Bit new to this so any help appreciated. I wanted to import a csv file with the row headings: Path, FileSystemRights, AccessControlType, IdentityReference, IsInherited, InheritanceFlags (it is the...

View Article


Need to parse IIS logs with powershell?

I'm looking for a way to point powershell to the c:\iis directory to parse through iis logs and only output information to the screen that matches certain criteria.  I know is is a very broad question...

View Article

PowerShell script to work on Document library items( item level Perminssions)...

Hi all,We have one document library say "XYZ".We have written a .net code to add permissions(Item level) based on one of the value of column name(Industry_type) of "XYZ" Library.For that  we break all...

View Article

Getting service state and starting it

Hello,I want to get service state, and if the service is not started then start it, and repeat the process until it really starts (it may fail sometimes).I tried the following :     $svc = Get-Service...

View Article

Getting RANDOM errors while loading...

Hi, I'm trying to convert a .doc to HTML, and for that I do $saveFormat = [Enum]::Parse([Microsoft.Office.Interop.Word.WdSaveFormat], "wdFormatFilteredHTML");at some point in the script. When using...

View Article


Supressing errors (erroraction silentlycontinue not working)

Good morning everyone.I've not long answered my own question on a PowerShell query thanks to the prodding of a few, but have now come up with a need to supress error messages.I have two text files, one...

View Article

Check-Out files over Powershell

Hello,I only want to check out a path with powershell and also check in this path one minute later at Team Foundation Server.How can i do this?I have installed the tfs power tools at my server.Thanks...

View Article


parse and exclude string from PS command output

Hi guys,I'm trying to improve my Power-Shell level and i encountered an issues which I'm finding hard to solve.An output of one of my scripts is as followed:Path ---- D:\Users\user1 D:\Users\user2...

View Article

Best practice for monitoring processes with low memory/cpu usage

Hello,I have a win 7 box running as a kiosk. Hardware could be an issue since it is really old and won't be changed. There's only one application that is running: IE. My aim is to re-launch IE whenever...

View Article


Add a URL rewrite condition on IIS using Powershell

Hello, after searching the net and my powershell help command, i cannot find a solution to my problem.So, i'm adding a rewrite rule to my website which works fine using following commands (the $_ is...

View Article

Import-Pssession is not importing cmdlets when used in a custom module

I have a PowerShell script/function that works great when I use it in my PowerShell profile or manually copy/paste the function in the PowerShell window. I'm trying to make the function accessible to...

View Article

Account synchronization between AD and non-domain member server

Hi,I've got this scenarios: Wins 2008 non domain server with 20 local user accounts. The same users are domain members. Whenever the passwords change in AD, is there any way to synchronize accounts...

View Article
Browsing all 2562 articles
Browse latest View live


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