Create a list of active workstations and shutdown those workstations with...
Hi, I am new to this forum and inexperienced. I have been assigned the task of shutting down all workstation at 8PM every day. I have found a script (all credits) to fetch for active machine from AD...
View ArticleError on no value
Hello,I have the below code as a small function in my HTA. function DButton() { var array = ['A','B','C','D','a','b','c','d']; var str = "A,B,C,D,a,b,c,d"; var x =...
View ArticleClosing a HTA from an Iframe
Hello,I have a HTA which has a loaded IFrame and I am wondering how I can close the HTA from a button? The end.html is below:...
View ArticleHow do I write a Powershell script to export directory listings?
If this is even what I'm looking for...I just want to export the files contained in a folder to a text or .csv file. Is this possible?~Tina
View ArticleFrom day of year get the fool date
HelloPls, How i get the fool date from this scripte?!cls $year = "2019" $cd = ([datetime]"12/25/$year").tooadate() $array = 1..29 |% { if (($cd - $_) % 7 -eq 1){ [datetime]::fromoadate($cd -...
View ArticleUser replication from OU to Security Group
Hi Guys, I want to add all my OU members to add into new security group.Get-ADuser -SearchBase 'OU=India,DC=study,DC=com' -filter *| % {Add-ADGroupMember 'New_Group' -Members $_.DistinguishedName }If I...
View ArticlePowershell - loop question
I have a script which is visible in the screenshot and I don't know why the values in $vmlist cannot be accessed. I'm creating the list, then foreach"ing" them, but running a command against them is...
View ArticlePowershell Skipping Steps...
Hi all, I am working on a powershell script that runs an .msp install patch quietly across my IT environment. There is logic in the PowerShell script that verifies if office is x86 or x64 to apply the...
View ArticleLogoff a specific user Powershell Script
Hey teamI need to be able to log off a specified user.I am creating an automated process using MSP N-Central, which checks the remote computer to see if a particular user is logged on, if that user is...
View ArticleCombine two .csv across a single variable
Hello! I'm super new to PowerShell, and I need some guidance. I'm trying take two .csv files and combine them across a single variable. csv1name,start,end Ashleigh,1/5/2019,4/5/2019...
View ArticleDisable\Enable all input using in vbs file
Hello, TechnetiansI am in need for some helpI need to disable all user input (keyboard\mouse) using vbs script file.Any help will be highly appreciated!If you find this post helpful, spend a second to...
View ArticleSend csv file from server 2016 to ubuntu 18 via powershell
Hi allwe need to made a script to send a file csv from Windows server 2016 to ubuntu server 18. On ubuntu, try to install vsftpd and from windows (Filezilla software) we can access. But when try to...
View ArticleOptimize PowerShell Script (VMWare)
Hello,I have created this PowerShell Script to an Inventory of Virtual Machine from vCenters, Script works just fine However it take very long time to provide the output I have around 5 vCenters and...
View ArticleProgram uninstall and install newest version script
I have a script that kills a program that starts up automatically at login, removes the program then installs the new one. Im pretty novice at scripting but what I want to do is add to the script if...
View ArticleTrying to create a shortcut from network
From a powershell command , I want to install a shortcut to the file on the network so the students can click the nctest.seb file to activate. Once the file activages, it will prompt the student for a...
View ArticleCopying SELF permissions from one user to another in AD
Hello there! I'm having a problem with the security in Windows. I need to give specific SELF permissions in every user of my Active Directory. Through GUI I've written this permissions in one user, but...
View ArticleInventory of users that have Windows Hello configured
If Windows Hello is enabled for all users to self-service enabling it, is there a way to identify if Hello has been configured by a user on a device and ideally what factor is registered (fingerprint...
View ArticleNew to Powershell. Could use some help understanding variables in scripts
I'm currently in college learning about powershell and we recently got into using the ISE. I have an assignment that I'm supposed to write a function that does a simple lookup on a computer's OS and...
View ArticleBatch file problems
Hello all, quick question: This has already worked but for whatever reason doesn't work anymore... Was using those batch files to mount and unmount Volume in Windows: Mounting: @echo off REM Be sure...
View Articlepowershell question - export Ad computer group to csv - get mac address, name
hi folksI haven't looked at scripts in years.I need to export all computers from certain AD security groups, and my syntax is rubbish for gettting the MACs!the basics which worked were...
View Article