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

Cannot Set-AdUser -Manager due to "user must change password at next logon"

Hi.I have about 200 users who haven't changed password yet.I have made and testet a script that sets the Manager for all users. For some reason the script cannot find the Manager for the 200 users that...

View Article


Invoke Command = Press Enter on an EXE

Hi thereI'm calling an exe via powershell using the Invoke command and i seem to get error one machine and not the other. The only difference i can see is the Program Files pathThis worksInvoke-command...

View Article


Trying to invoke script from two levels up

I need to execute a script that is in a path structure that is two folders up (back) from my current location.  I can not move either script.  I have tried invoke-expression -command ".\<script...

View Article

Use PowerShell Remoting to Manage SQL Servers Efficiently

In all the years I've worked as a server administrator, I've always logged into each server I work on to gather data or make changes. On Windows servers, the standard way to do this is to use Remote...

View Article

Powershell SQL

PowerShell-Input-Validation Scripts Read More

View Article


Function that updates the database - Guid Problem

I have a function that updates the database with a project name.  The PK column is a GUID. When I pass in the project name and an empty GUID I get a error that reads:      "Conversion failed when...

View Article

understanding how to add Export-CSV into a script?

Hey Guys,S0 I managed to figure out how to Get-Content from a file. but Ive looked at many examples of Export-CSV and I just dont know where it should be inserted int the script to work..? if I can...

View Article

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

Hi,I am trying to run a HP Warranty Lookup script that I stumbled upon and I am getting a couple of "You cannot call a method on a null-valued expression." errors...I am still learning Powershell and I...

View Article


copy-item: How to exclude files that already exist at destination

Copy-Item -recurse $i.FullName $destination -Filter *.trn is the line of code that I run to copy sql transaction logs from source to destination.THis was ok in most version of Windows. but in Windows...

View Article


PowerShell script works on PCs with PS 3.0 but not on PS 2.0

Hi all.I am new to PowerShell and am having some difficulties executing a script that I adapted from one I found online on PCs that are running PowerShell 2.0. The script executes just fine on those...

View Article

Setting the screen location of message box

Top Left preferred. Thanks

View Article

Powershell CSV report usernames & Phone Numbers - but exclude area code?

HowdyI am working on a PowerShell report of user names, First, Last, and their phone number populated in AD.But the request is to take out the area code.  That's not something I've done before, can...

View Article

Hosts Update

Would you like to update your HOSTS file from three different sources?In this blog http://hostsarchivo.blogspot.com.es/ at the end of item 15 a new version with $objNotifyIcon = New-Object...

View Article


Remotely Querying a key on all user's registry on multiple machines

basically what I want to do is run a query on all machines within an IP range to find a registry key from each user on each machine, all the machines are on a domain which I have domain admin onit...

View Article

How can I schedule this simple powershell script 3.0 to run using Win Server...

This simple copy line in powershell runs interactively but when I try to schedule in Windows task scheduler, it shows that it completed but it did no work. I.e., it did not copy the file. I tried using...

View Article


PowerShell 4.0 and more Quick Refs from PowerShell Magazine and Microsoft

Quickly learn tips, shortcuts, and common operations in Windows Powershell 4.0, Windows PowerShell Desired State Configuration, Windows PowerShell Workflow, Windows PowerShell ISE, Windows PowerShell...

View Article

Join the Dell Client PowerShell Provider Beta

Dell, today, is launching a special PowerShell provider for native configuration of Optiplex, Latitude, Precision, and Venue 11 systems. Currently in beta, you can download the new provider, test it...

View Article


PowerShell Summit 2014

Yesterday, I gave two presentations at the PowerShell Summit . The first presentation was on advanced eventing techniques in PowerShell and the second was on using PowerShell as a reverse engineering...

View Article

gci recursive

Hello,can someone give me a hint with a few lines script that i have.I have created a function that i call in other scripts. I am using regex to replace part of the folders.Folders have names like:test...

View Article

Running a PowerShell Script for a Sharepoint Workflow

Powershell script works on the main site, but does not work on sub-sites in Sharepoint 2010.  Assistance will be greatly appreciated.   # SharePoint.Workflow.Start-SPSiteWorkflowparam (    [string]$Url...

View Article
Browsing all 8583 articles
Browse latest View live