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

Get a list AD users that have logged onto a computer

I am looking for a way to get a list of AD users that have logged onto a more or less public computer.  I can get all the local users, but not AD\users.I have not found any references and have no idea...

View Article


Creating Permanent Event Subscribers

I have some code that I was sure used to work which creates a permenet event handler.  The code is: #   Create Event Filter$EventFilter =...

View Article


Invoke-Command Error -- Cannot Evaluate Parameter

All,I am trying to execute a third party program and name the job so I can tell when its done.Here is my script snippet,$args = @()$args = "F:\Program Files\Ipswitch\WS_FTP Professional\wsftppro"$args...

View Article

Poweshell 3.0 Issue: Remote commands

I recently installed "Microsoft Management Framework 3.0" on some of my servers and noticed that one of my scripts stopped working when ran in Powershell after the installation.  Its a complicated...

View Article

AWS undermines Azure with new PowerShell, Windows Server 2012 features

Amazon has adopted PowerShell and key Windows Server 2012 features in a play to draw IT pros away from Microsoft's Azure cloud.Read More

View Article


Year of PowerShell? The best Windows Server tips of 2012 for admins

All of 2012 will be remembered as the year Microsoft made a move toward major change in its products, and the release of Windows Server 2012 was no exception. Touted by Microsoft as the "Cloud OS,"...

View Article

Unable to invoke an .exe from my powershell script

I'm trying to run a exe with parameters and I have tried all kind of ways, "&", invoke-expression, invoke-command, but the only way I can get it to run is to use a hard coded path.  The problem is...

View Article

'dcdc current' -match '(dc){1}' Shouldn't this regular expression return False?

According to about_Regular_Expressions, both regular expressions below should return False:'dcdc current'-match'(dc){1}''dcdcdc current' -match'(dc){2}'But both return True!Am I wrong?

View Article


Check for specific files

HiIs there a way I could use the following code and use the Get-Content cmdlet to loop through file names contained in the text file and return "files does not exist" with the else statement if the...

View Article


PowerShell script for DataBase upgrade issue

When I am trying to execute the following code in order to perform DataBase upgrade using DACPAC on Powershell 3.0. I m getting the following error "Cannot find an overload for DacStore and the...

View Article

Running exe from Powershell

I have a exe job I want to run from PS. I seem to be able to start it but it does not achomplish what the exe is supposed to do. It is ws_ftp. Anyway if I paste the same command in a dos cmd window it...

View Article

Get scripting help with PowerShell Plus

Takeaway: Derek Schauland finds a free tool to help shore up your PowerShell skills and share knowledge with a community of users.When I started using PowerShell and various Integrated Scripting...

View Article

Idera Makes PowerShell Plus Available to the Community for Free

Idera has released a new version of its integrated development environment (IDE), PowerShell Plus 4.6. In addition, the company is showing its support for the PowerShell community by making the IDE...

View Article


PowerShell Deep Dives

Here's your chance to learn from the best in the business. PowerShell Deep Dives is a trove of essential techniques, practical guidance, and the expert insights you earn only through years of...

View Article

How to get around access denied errors in powershell?

I'm having this issue in powershell where I can't access the contents of one folder to search via powershell.  If I go into the console and go to the folder and open a text file I am able to see the...

View Article


Using switch in powershell not working as expected?

So I'm using the switch in powershell.  I have several individual functions inside of my .ps1 file.  When the script loads I get a menu which i created that allows you to choose what function to run....

View Article

Powershell portable

Hi to all. Where i can download powershell portable? I know that carl posser create it, but site portablepowershell.com does not work and google don't help me =(. Any body have portable powershell v2 ? 

View Article


Making sense of new Hyper-V 2012 PowerShell cmdlets

Hyper-V PowerShell modules included with Windows Server 2012 will make it easier to streamline virtualization administration without System Center Virtual Machine Manager (SCVMM), but there are some...

View Article

Create User & Mailbox

Hello Gurus I have a win2008 R2 domain controller. I also have another member server which has Exchange 2010. I have to create 124 Users in 1 specific OU with their mailboxes in Exchange 2010. I need...

View Article

how to get a content of a file to event log

I have got PS script to get the Regkey count to a text file. I am using this script in Task Scheduler & Can you please let me know if we can get the content of that file and have that logged to...

View Article
Browsing all 8411 articles
Browse latest View live