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

WMI 'Permanent' Event Subscriber, can the Action now be PowerShell rather...

HelloWhen creating a WMI 'Permanent' Event Subscriber (e.g. one that carry on when you close the shell or reboot the server as it get stored in the CIM database), it used to be the case the the Action...

View Article


regional settings

Hello,When executing this command in my local workstation it outputs correctly.robocopy "c:\data" NULL /l /s /nfl /xx /nc /ns /njh /njs | foreach { $_.trim() | out-file -Encoding UNICODE -append...

View Article


PowerShell question

 1. Creat a new folder named current date (ddmmyyyy)2. Save ApplogEvent with errors for the last week in file app.csv in your new folder3. The event have to be sorted by name.4.Open file Menu...

View Article

Automation of Storage Foundation for Windows (SFW) operations using...

Use the framework to create your own custom scripts in Powershell to automate the SFW operations.Read More

View Article

Using signed PowerShell scripts with configuration items and applications

In the past if you wanted to use a signed PowerShell script as a configuration item detection method or deployment type detection method, you would see an error on the client when it tried to process...

View Article


PowerShell Script to notify you when a server has finished rebooting

I do a lot of server rebooting, especially when I am testing policies etc. Ping doesn’t tell you whether a server is ready to be logged onto and watching a console can be painful so I wrote this small...

View Article

PowerShell Magazine completes 3 years!

Time just flies. On 13th of this month, PowerShell Magazine completed 3 years of publishing exclusive PowerShell content. This was possible because of ever growing support from our awesome...

View Article

Search Files efficiently

Hi,I am trying to write a powershell script to search and find if the files exist in a given directory or Drive. and then find the fullpath of the file location.In the Filestoscan.txt I have some 700...

View Article


Use powershell to update / install exe

hello ate, i want to write a ps script that will auto download exe file from suppliers site(e.g. http://www.suppliers.com/file.exe)then after the download the scripts will check if existing file on...

View Article


Using PowerShell for Active Directory

IT Pros, want to automate redundant tasks and do it right the first time? Learn how to turn your real-time management and automation scripts into useful reusable tools and cmdlets. Use PowerShell to...

View Article

OpsMgr: Creating a PowerShell script based monitor with Silect MP Author SP2

Silect recently released Silect MP Author SP2. This tool is targeted at the IT Pros and allows them to easily build completely new or even customize existing management packs for OpsMgr without needing...

View Article

How to use the Test-StorageHealth.ps1 PowerShell script with different...

If you’ve tried the Test-StorageHealth.ps1 PowerShell script, you noticed it assumes a verify specific Scale-Out File Server configuration:Read More

View Article

modules

Hellowhere can i find a list of all the modumes available? ( as DHCP server or AD ..... for example)Thanks a lotTG

View Article


.log file to richtextbox

Hello,i'm searching for the best way to show a microsoft .log file to a richtextbox. if u just do a get-content, i have somthing like that in richtextbox : <![LOG[Raised Program Started Event for...

View Article

Check last line `r`n

Hi,I am trying to split the source file based on specific size. <code>param([string]$fromFolder,[string]$rootName,[string]$ext,[int]$fl_size)$NumOfParams=4 If (($PSBoundParameters.values |...

View Article


Function for CRC32.

Hi,Could any one post a function which generates a Hexa Decimal CRC32 value for a file using powershell.

View Article

xml save indentation lost

Hello,I'm trying to save some XML but I keep loosing the formatting.  One note before I continue.  This code works fine on a server in the US but misbehaves on a server in Brazil.  When I save the file...

View Article


problems with psexec

I ve got a remote computer connected through ethernet,I VE connected to remote computer and mapped a drive to it using  net use z: \\169.254.98.238\users\johnI dont need a password as its the default...

View Article

Converting pivot code from VBA to PowerShell

I have Pivot code I need to convert to PowerShell, and I am just not getting it right. Can anyone please help code this conversion into ….. PowerShell?This is Excel VB MacroSub XX()  '  ' XX Macro...

View Article

Error: Get-ClusterResource – Error opening resource

I am getting the following error on a server when trying to get a cluster resource using wildcards for the –Name switch. I do not get this error on my local machine. If I specify the complete name for...

View Article
Browsing all 6937 articles
Browse latest View live