Get-ADGroupMember by different criteria
I've got the following code working to list AD group members by specific group and retrieve their properties. I need to create a report though and seperate it into three seperate sections - accounts...
View ArticleNetAdapter InterfaceDescription
Okay, I give up. I'm trying to change the "InterfaceDescription" value for my NICs using PowerShell, and cannot for the life of me figure out how. I can change the "Name" no problem. Anyone that can...
View ArticleXML-RPC with PowerShell?
I use PowerShell to create new users and accounts for our onboarding process and for Exchange accounts for Office 365 (which we recently migrated to), I need to create the accounts locally and then...
View Articlehow to capture results and send email
How can I capture the output of the write-host to a variable then send that info to an email for someone$year = get-date -f "yyyy" $month = get-date -f "MM" $day = get-date -f "dd" Get-Childitem -Path...
View Articlepowershell to pass yes or no response
I am using Brocade switch to run this command Step 1. Log in to Brocade switch with root user name Step 2.Run the below command Brocade:root> cfgsave Step 3. After this cmd is executed i will get...
View ArticleIdentify elevated process for non-admin
Although it is unusual, unpriviledged users can run elevated under their normal credentials (not with admin creds). This most commonly occurs with logon scripts run from GPO. Running elevated messes...
View ArticleShort PowerShell script for finding 1st available drive letter?
I only found old and long scripts (mostly non PS). Any suggestion?
View Articleunpersistent drive mapping question
We have a large (200+) set of shares to map to various users based on group membership via PowerShell login script. I am very familiar with the arguments for using GPP with item level targeting as a...
View ArticleBug? Invoke-RestMethod and UTF-8 data
Using PowerShell 3.0 I have a RESTful get service I'm calling that returns UTF-8 data and it appears I've found a bug, but I'm hoping someone has a work-around. The service returns a person's first...
View ArticlePowerShell 2.0 - When to use SqlServer Snap-In
Hello there,Just started learning about sending Sql Server command through PowerShell. I understand that we can use .Net objects like SQLConnection, SqlCommand (just like we do in C#) to send the CRUD...
View ArticleThe operation returned because the timeout limit was exceeded
I have the following script, I've ran it for about a year now. with no issues. It searches through all the AD servers, looking for the Last user logon date. Today, I noticed I am getting a...
View ArticleGet-PrinterProperty question
From my 2012 R2 server how can I get the properties on a printer from a 2008R2 server using Power shell, Thanks.MSB
View ArticleHow to type Korean Characters in command prompt of Korean win2k3/XP
We are not able to type the Korean multi-bytes in command prompt of Korean-Win2k3/XP. But we able to copy paste the Korean characters command prompt successfully. Here we are using “MS-IME2002” as...
View ArticleFunctions from Module Scoping Question
Hello,I have the following case:I`m using module that contains several functions, some of them are executing commends in remote sessions. These functions are used from Powershell Script. The issue is...
View ArticlePowershell script to reset TPMLockout
We have Windows 7 Enterprise laptops with TPM chips. We have deployed Bitlocker to these laptops. What I'm trying to accomplish is to write a PowerShell script to look up the msTPM-OwnerInformation...
View ArticleDataGridView: Get data from rows
Hi, i'm fresching with powershelle and i want to know if there is an option of DataGridView, that allow to get data from rows without select it. i will more clear... i do a grafical inteface where user...
View ArticleDifferent Results Depending On Execution Area
Hello,I am trying to write some simple testing to be completed after patching/outages and wanted to automate it. Everything was going great until I tried to package it all together so that each test...
View Articlechange a cell value in excel using powershell
HI All,I am using powershell to manipulate an excel spreadsheet.I am using a vlookup to get data from another sheet and compare it.I want to delete all rows where the vlookup comes back with #N/A but I...
View Articlefailed files check, keeping track issue
Hey guys, we have a failed print queue folder and we want to run a script that checks this folder for say 10+ failed jobs then email us and notify that is the case, easy enough? But... i dont want it...
View ArticleAdd YYYYMMDD_xyz_ftp in front of the file name using PowerShell
Hi All,I am working on a PowerShell script to generate a dat file. I need to change the format of this file as follows:Original File Name: eagle.datRequired File Name: YYYYMMDD_CA_eagle.datI know that...
View Article