Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Looking for better way to output Foreach loop statements correctly to CSV

New to Powershell here. I'm trying to figure out a better way to write this short script. The script searches through a list of groups and determines if those groups meet certain parameters. If they...

View Article


Event Logs

Hi,I have enabled auditing on a drive on our file server. The only info I am interested in is when an object is deleted.Event ID 4660 tells me who has deleted the file but I need the corresponding...

View Article


import csv rename user account is exists in AD

ok, got an interesting one here. Might be easy i have no idea where to even begin with this one.If have a web site that generates csv file to import into AD. No problem, works great.I need to put in a...

View Article

HTML Content in Powershell HTML Output

How do I include HTML tags in the table output generated by the ConvertTo-HTML command?For example, if I had an array of objects like...

View Article

Issue processing multiple csv files for AD import

I know this is probably a rookie thing but I cant seem to figure this one out. I have a website that will be a new hire portal. once the person hit submit a csv file is generated and is moved to a...

View Article


Windows Powershell and HP Open Test Architect (TDApiOle80)

I'm not sure that this is the correct forum to place this in. Please feel free to move it if needed... I have a task to create a new script using powershell and the OTA. When trying to log into quality...

View Article

export powershell results

First I want a powershell command to help me see whom of my students activated their office 365 account and who did not use it yet (and their last login)Second I want these results in an excel file so...

View Article

Help with adding a progress bar to my compare-object script

I have a simple compare object script that I would like to add some kind of intelligent progress bar or countdown timer to.  The script takes anywhere from 1-12 hours to run depending on the folder...

View Article


Search through group members one at a time?

I currently have a script that searches through group memberships using "get-adgroupmember" to see if a group contains a user object, and if so, the script performs an action. However,...

View Article


Fastest way to search through root domain for user objects present in groups?

Hello all. New to PowerShell here, and wanting to be sure my script below is optimized as far as efficiency and speed. I've been searching around the Internet to teach myself various PS components, and...

View Article

Telnet automation IMAP and auto restart IMAP service if failed

Hi Guys,Hope you all can share some info how can i script .ps1 to  1. telnet to imap server port 1432. restart the IMAP service if the failed to connect to IMAP.thanks,jwai loong

View Article

Image may be NSFW.
Clik here to view.

Powershell- Exchange Online session not lasting more then 2 minutes with...

Hi,    My exchangeonline session is not longing more then 2 minutes.. I created a session as followsPS C:\>$sessionOpts=New-PSSessionOption -ProxyAccessType AutoDetect -IdleTimeout 3600000...

View Article

If .csv file exists in directory"proceed" else die help

Hey guys, I'm back again. Been working on this automated AD User creation script for weeks now. I got it all working but there's one more piece i want to integrate into the scripti have a folder...

View Article


Possible to copy the new cmdlets & Modules in 81. ¤ 2012R2 to Powershell 4...

Hi!Silly question for the year... :-)Our company can not fully migrate to Windows 8.1/Windows 2012R2 for at least a year (our internal environment is very special).But we have begun to migrate our DC:s...

View Article

Powershell 2.0 - get-hotfix cmdlet problem

All, Curious to know if get-hotfix will display the results for any hotfix / patch that's been installed on a workstation / server?  The reason I ask is that I tried to use it to see if a particular...

View Article


Comparing number values

I need PS to compare a true whenever it finds a value in range of another value. For example on the second line down it falls within range of the first one. When I use compareTo it doesn't seem to work...

View Article

convert into zip file to .dns file with powershell

HI I am using below command to take DNS zone backup and after zone export I am moving that file to other folder with below script. DNSCMD /zoneexport contoso.org contoso.org.dns Move-Item...

View Article


Windows PowerShell script issue/AD issue

Hi,We are running a powershell script to fill in some AD attributes and its a pretty standard script: import-module ActiveDirectory Set-ADuser -Identity "User1" -Department "Department1" -title...

View Article

LDAP authentication to another domain in Powershell 3.0

I am writing a script to map drives on domain B when the user is using a PC on domain A. The script works fine until I add validation to it. I am thinking the problem may be within the context of the...

View Article

Assembly question

Last October I posted a question on BigIntergers :...

View Article
Browsing all 21975 articles
Browse latest View live