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

CM12 SP1 and Powershell

As you may be aware, CM12 SP1 brings support for powershell and it is really easy to play…once you have the console installed, you can click Connect via Powershell. Read More

View Article


PowerShell... Now Less Daunting

Last Friday, I had the luxury of attending another PacITPros TechDays... It was all about PowerShell. Jason Helmick taught in SF and in the East Bay. Both days were completely packed. PowerShell IS...

View Article


Set-ACL problem passing a string instead of an object variable...

Hi, I have a problem that's giving me a head-ache but hopefully is simple to someone out there with a bigger brain than mine. Basically I have script for new user creation that picks up a variable...

View Article

Getting Manager Email Address from another account

I am writing a PS script to check user accounts in a specific group for AccountExpirationDate.  Once I have determined if the account meets my timeline, I then run the account through some if, elseif,...

View Article

Splunking Powershell and .NET Data Structures

We are currently rocking it at the Microsoft Exchange Conference (MEC) in Orlando and I’m being asked where we get our data from to handle the reporting and monitoring requirements for the Splunk App...

View Article


Project Server 2010- Powershell- Check User's group association

This PowerShell script might be useful for administarors/Developers to find out for a given resource's group. This script checks if the given RES_UID is associated with Administrators group of project...

View Article

Install Project Server 2013 with Powershell

Last week, I was working on my demo environment to be used for some future presentations. When I was looking around on the great MSDN world to get some best practices related to a Project Server 2013...

View Article

Renaming files

I need to rename a few thousand files that are in a few hundred sub-directories under the main folder.  Each of the files have different naming conventions, however they all have the year 2011 in...

View Article


How do I Make columns in PSobject closer?

I'm using the following code format below: $tobj =  New-Object PSObject$tobj | Add-Member -Name "Server" -Value $Server -MemberType NoteProperty$tobj | Add-Member -Name "Scenario" -Value...

View Article


Software Installs not logging in Event Viewer.

OS - Windows 7 Professional (x64bit) I am trying to find if there are ways to set so that when any software has been installed, it will get recorded in the event viewer. For example....I was trying to...

View Article

Create multiple new AD users form a CSV and then add them to a list of groups...

Hi guys, I'm a little stumped. I'm trying to write a script which creates a list of users form a CSV file and then also adds them to a list of groups which is also store din the CSV file. so far I have...

View Article

Accessing Oracle Database 11g with Powershell

Hi there   Has anyone any experience with accessing a oracle 11g database in powershell?   Is there a module which can be downloaded in order to access a oracle database.   I want to extract data from...

View Article

Image may be NSFW.
Clik here to view.

Trying to make a Takeown.exe CMDlet, but locales is causing a problem

The problem is with the /D parameters in takeown.exe, that needs to be confirmed with language-independent yes/no start-letters (y/n in english, but ie j/n in danish). This picture should clarify:...

View Article


Want to send info to Out-File using different credentials

Hi I want to do something like $info | Out-file $remotefile -Credential $cred but Out-file does not support this. Using an 'invoke-command' on localhost does not work well because it tried to run the...

View Article

Is Test-path " " feature or a bug?

Hi, I cannot figure out why does the Test-path " " evaluate to true. What special case does the space represent?  That path is valid and exists. In fact it is a Container (Test-Path " " -PathType...

View Article


How to move windows on screen ?

I can restore, minimize, maximize windows like that: $hwnd=(Get-Process notepad).MainWindowHandle [Win32.NativeMethods]::ShowWindowAsync($hwnd, 4) But how to move its(windows) using powershell? I do...

View Article

Automating Website Creation with PowerShell v3

I will be the first to admit that I am not a scripting pro. Matter of fact, I am pretty much a novice at it. Recently, I stumbled across a PowerShell script that creates a website, populates it with...

View Article


Tabular Database PowerShell CmdLets available on CodePlex

JuanPablo just released an interesting cmdlet library to manage Tabular Models using PowerShell. It builds on the Tabular Model with AMO project, which JuanPablo introduced a few months ago in his blog...

View Article

Add Active Directory users to groups

I am looking for a script that will query active directory and add users to groups based on location code and job title.

View Article

Adding active directory users to groups based on OU

I am looking for a powershell script that will allow me to add active directory users to groups based on the OU they are in. Here is what I have.   "Get-ADUser -filter * -searchbase...

View Article
Browsing all 8411 articles
Browse latest View live