Quantcast
Browsing all 21975 articles
Browse latest View live

How to get/set Share permissions with PowerShell

I have a file server with a bunch of Shares and need to get/set Share perms and inventory stuff.  I've looked at other threads on this forum but there seems to be more than one way to do it.What I'm...

View Article


Send Email from CVS file with HTML text format

Hi Team,Thanks for looking in this Question.. I am looking for one solution to send email to Bulk users.Here the scenario.1. One CSV file  containing list of email to user and there respective...

View Article


when do simple parenthetical grouping matter in PowerShell code?

When do simple parenthetical grouping matter in PowerShell code?Here's one example when using parenthesis matters (thanks to Boe Prox for inspiring this example):<#c:#> 'abc' >xo<#c:#>...

View Article

problem with the powershell pipline parameter process

Hi, I'm confused with the pipeline processing of object-property-parameter association.Here my Cmdlet example Function test-psboundbug{ [CmdletBinding(DefaultParameterSetName='Parameter')] param(...

View Article

Create folders and subfolders and provide the permissions

I need to create a folder and subfolders, share the subfolder, and provide the permission.For Ex:-1. Create the folder within C:\ -- Kozos2. Create a folder within Kozos -- Company13. Create a folder...

View Article


Adding users to groups from CSV file - skipping blank fields

Hi,I have the following script: $userList = Import-Csv "newUsers.csv" $groups = $userList | Get-Member | where { $_.Name -like "Group*" } | select -Property Name ForEach ($user in $userList)  {...

View Article

Powershell expert help needed in powershell remoting C#

im trying powershell remoting for some specific operatons on a  remote computer and  using wsman for the connection options. WSManConnectionInfo connectionInfo = new WSManConnectionInfo(false,...

View Article

How to Get User Account Information Through Powershell Script in Active...

Dears, I wants to get LDAB user account information for example Department, company, office, email account fields information through PowerShell script, is thee some scripts showing me all above...

View Article


HTML Email - Multiple Commands

Hi all,Let me preface this by saying I don't know much about PowerShell. However, we needed a couple projects tasks done and I took them on to use the opportunity to gain some insight and skills. So my...

View Article


Import-Csv Issue

Experiencing a wierd issue, that hopefully someone can help me out with.I have a script that retrieves users from AD, formats the headings to be what I want, but if I pipe to Export-Csv, then...

View Article

query one service on computers help

Windows 2008 R2 OS We have about 100 Windows 2008 R2 computers and just find out that one service name abc (ex) is missing on several computers.  I need to find out whether this service is missing on...

View Article

Remove all (unknown) printers on Windows Server 2012

Hello,  Can you advise me how to remove all printers that are on Windows Server 2012.  The script that removes all unknown printer. Thanks for any advice

View Article

is update approved for specific group via powershell?

Hello, I have a script that auto approves updates based on release date for specific groups. The script checks to see if the update has already been approved (e.g. isApproved) and either skips it if...

View Article


Removing Self-Signed Certificates from Personal Store (Lync)

I believe a member of my team has a solution to the below but I wanted to weigh in on the PS forum area and see if there were additional thoughts.Short story, the Lync client self-signed cert is...

View Article

ADding bulk users on send on behalf to

I am using this command to add send on behalfGet-mailbox "Sid test 1" | Set-mailbox -Grantsendonbehalfto "Sid Test 2","Sid Test 3".When i check the results it only adds 1 mailbox.Please advise

View Article


Image may be NSFW.
Clik here to view.

Unable to Install PowerShell V5 preview on Windows 8.1 X64

Over the weekend, I upgraded my laptop to Windows 8.1 Enterprise (with the 8.1 update). All went well but when I go to install the WMF 5.0 preview, i get :I have .NET 4.5 loaded and here's my...

View Article

Need help with PS

Hey guys, I am trying to figure out how I can search AD for accounts that haven't logged in for 90 days and disable and move them. What I would like to do is have it put out a report and I clean up the...

View Article


how to open IE browser in private mode with powershell script? $ie =...

How can I open IE, in inPrivate Browsing mode using PowerShell script?$ie = New-Object -com internetexplorer.application; $ie.visible = $true; $ie.navigate2("http://bing.com"); while ($ie.Busy -eq...

View Article

get-process returns incorrect sessionid when running over the network

I faced a strange problem. If I run the following statement everything is working fine.Get-Process | Format-Table ProcessName, SessionIdNow I am just adding -computername parameter as...

View Article

Run invoke-command script on multiple computers parallel

Guys i have below script that works fine but it takes lot of time as it has to run on multiple forest to get the result how can i  make this script run parallel on multple forest at a time any help...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>