Quantcast
Browsing all 21975 articles
Browse latest View live

Powershell code to get current selected Outlook 2010 folder

I am trying to use PowerShell to get the currently selected folder in Outlook 2010. I am able to do this with vbscript.Below is the PowerShell code that is NOT working.$objOutlook = New-Object -com...

View Article


Problem with setting permissions using PowerShell.

I am trying to use the first script below to set perms on a folder structure for updating and then run the second script to reset the folder structure to be secured.  The problem I am having is when I...

View Article


Getting a list of users and permission from a folder including nested groups

$project_folder = "\\servername\foldername\foldername1" Get-Acl $project_folder |     ForEach-Object {         $_.Access | Add-Member -MemberType NoteProperty -Name Path -Value $_.Path -PassThru      }...

View Article

Can I compare a domain SID to a User Account's SIDHistory property?

Hi,The goal is to find out how many User accounts in domain 'A' have a SidHistory entry in their SidHistory property from domain 'B'.So if the domain SID is something like...

View Article

Export CSV comes different

$GGAdmins=@("SG-MFG Grp Administrators","CA-Toronto-AV Grp Administrators") foreach ($GGAdmin in $GGAdmins) { $GGAdminRst=Get-QADGroup $GGAdmin | where-object {$_.distinguishedName -notmatch...

View Article


Use Get-Wmiobject on remote PC with non admin privileges

Hi, I'm trying to run following string from remote PC to my SSRS PC.Get-Wmiobject -ComputerName <ComputerName> -namespace ('root\microsoft\sqlserver\reportserver\rs_mssqlserver\v10\admin')...

View Article

Copy machine.config from multiple servers to share

Hi!I need to copy machine.config (from all .net versions installed) from approximately 30 servers to a shared folder. Like...

View Article

[ADSI] Local Groups Users, Users Type, etc ...

I'm having an emergency for a compliance audit they want to know who has access to a list of servers.I found some scripts which help, but unfortunately it doesn't go as far as I need.I need to list all...

View Article


how to add multiple files into one ZIP file using Write-Zip

Hi I am Using PS 3.0 and PSCX module from below link to ZIP the output file. http://stam.blogs.com/8bits/2010/06/create-zip-archives-with-powershell.html Its working for one file but I need to include...

View Article


Image may be NSFW.
Clik here to view.

Powershell (and only Powershell) can't see network drives.

Having a bit of a strange issue with Powershell today, I went to open a script I had worked on last night and Powershell is telling me that it can't find my H: drive (my personal drive here at work)...

View Article

simple Passing parameter one by one powershell

I've below and I wanted to pass variable $a one by one how do I do it? one by one means first param =A-ahamed 2nd one= A-Oliver  etc..$a="A-ahamed  A-Oliver  A-Fiesta"Function...

View Article

Creating bulk user accounts using ad

I found this script and i modified itImport-CSV E:\Users\ntaccount.csv | ForEach {  $user = @{ name=$_.name; displayname=$_.displayname; Path=$_.Path givenname=$_.givenname; surname=$_.surname;...

View Article

Powershell Set-Acl use without changing owner?

I have a folder, and I am trying to grant full permissions to another user, like so: $Acl = Get-Acl "C:\MyFolder" $AccessRule = New-Object...

View Article


Assistance with my script to find all opened windows (applications running)...

Hello,I have the following script whereby I want to list all the running (opened) applications on a remote computer.  It's a shared computer between two people who use the same generic ID.  Before one...

View Article

Exporting from Text File to EXCEL

Good day im a newbie i have a text file (LOG.TXT )that contain the following info below. S e r i a l N u m b e r       M X L 1 0 3 0 8 3 4           TW-BW-JU-IT-12S e r i a l N u m b e r       M X L 1...

View Article


Using a lookup from one CSV file to another CSV file errors with a name clash

HiI have a master CSV file created by querying the AD. I need to populate the "Team" attribute by doing a lookup using Name against  the Name Column any of 6 CSVs,  someone has prepared for me .  The...

View Article

Global or Passed vars?

I have a situation where I am going to process a series of "Packages" which contain an arbitrary series of "Tasks" and I need to then write that info to the registry in a "Package" Key and "Task"...

View Article


Configure IE proxy settings based on IP address

Hi,I'm using a laptop with Windows 8.1. At home I use the wifi, at work I use a USB network adapter. I want to create a PowerShell script that will configure a few registry keys (IE proxy settings)...

View Article

Bulk enable ADusers with Powershell

We are working on a school project setting up windows server 2012 R2. In the domain there are 70 users in multiple OU's. I've imported all the users with a csv file. Now the next step enabling all the...

View Article

Get AD Group count in particular OU

is there a powershell command to Get AD Group  count in particular OU?Please help me

View Article
Browsing all 21975 articles
Browse latest View live