Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

510 total results found

Remove old files from folder

Windows Powershell

Get-ChildItem –Path  “C:\inetpub\logs\LogFiles” –Recurse -file | Where-Object CreationTime –lt (Get-Date).AddDays(-30) | Remove-Item  -force 

Get Group Members

Windows Powershell

$GRP = "Wisys"    Get-ADGroupMember -identity $GRP | select name | Export-csv -path C:\Accent\Output\"$GRP"_Groupmembers.csv -NoTypeInformation      Export users from group for import to distro group    $GRP = "SG_WG_VPN_Site-00"    Get-ADGroupMember ...

Remove spaces from files and folders

Windows Powershell

$path = "Set path per location"  Get-ChildItem $path -File -Recurse | Where-Object { $_.Name.Contains(' ') } | Rename-Item -NewName { $_.Name -replace ' ', '' }      $folder = "set path per location"  get-childItem $folder -Recurse -include '* *' | rename...

Move 1 VHD at a time

Windows Powershell

TAGS: HyperV Move VM              $vmName = "ACS-00-VSRV45"  $hostName = "CM-05-SAN01"        $vhd= @{"SourceFilePath" = "F:\StoreGrid_BDR3.vhdx";           "DestinationFilePath" = "E:\Backup Storage\HyperV Drives\StoreGrid_BDR3.vhdx"         }  ...

Demote or Promote Domain Controller

Windows Active Directoy

Both of these commands need to be ran under credentials that have authority to demote the server.    Both of these commands will prompt for new local administrator password      #This command will test if there are any problems with demotion  Test-ADDSDom...

Remove lingering snapshots

Windows Powershell

Get-VMSnapshot -ComputerName "MyHyperVHost" -VMName "VMWithLingeringBackupCheckpoint"          Get-VMSnapshot -ComputerName "MyHyperVHost" -VMName "VMWithLingeringBackupCheckpoint" | Remove-VMSnapsh

Add all users in OU to security group

Windows Active Directoy

While working on figuring out how to add all of RS domestic to a security group quickly, developed this powershell script.  It will quickly add all the users in the listed OU to the specific security group listed.        Import-Module ActiveDirectory  $o...

Move VM

Windows Powershell

Tags: HyperV VM VHD Compress        This will move all parts of the VM to a central location.  Through the process it will compress dynamically expanding VHD.    ****************    $vmName = "ACS-05-VSRV01"  $hostName = "CM-05-SAN01"  $storagePath =...

Powershell Get Volume Cluster Size

Windows Powershell

Powershell Get Volume Cluster Size  $wql = "SELECT Label, Blocksize, Name FROM Win32_Volume WHERE FileSystem='NTFS'"  Get-WmiObject -Query $wql -ComputerName '.' | Select-Object Label, Blocksize, Name  

Sync AD with AAD

Windows Powershell

Start-ADSyncSyncCycle -PolicyType Delta 

Azure Cloud Sync

Windows

Originally AD Connect was the way that we synced Active Directory (AD) to Azure/365 (AAD).  That had an agent on-premise that synced with Azure.  The configuration of the agent was on-premise.  Eventually Microsoft has reviewed this and is in process of replac...

MacOS Terminal Command Bible

Operating Systems MacOS

What do you want to do?  Command  Flags/Notes  Find out what a command does  [command]   -h  Shutdown/Restart  sudo shutdown -h now  sudo shutdown -r now  -h -- HALT  -r -- Restart  Dow...

Various iOS "good to knows"

Operating Systems iOS

CONTACTS:    If a user has their contacts saved within Outlook, there are special steps required to get those contacts to show up on the users device.     If the user is using the actual Outlook App on their iPhone/iPad, their outlook contacts will be sand...

Remove a Domain User Profile from Windows 10

Windows Windows OS

To delete a user profile in Windows 10, do the following.  Press Win + R hotkeys on the keyboard. The Run dialog will appear on the screen. Type the following into the text box and press Enter: SystemPropertiesAdvanced  Advanced Syste...

Backup and Restore BookStack Instance

BookStack

Backup and Restore https://www.bookstackapp.com/docs/admin/backup-restore/ While BookStack does not currently have a built-in way to backup and restore content, it can usually be done via the command line with relative ease. Please note the below commands a...

Bookstack
Backup

How Duo Auth Proxy Works in my Setup

RADIUS

RADIUS Clients

RADIUS

Devices that will be sending RADIUS requests must be setup and clients on the RADIUS server. These are not the individual devices connecting to the network, but the Network Devices that will be doing the authentication. Example Switches, APs, Server, etc

Network Policy Server

RADIUS

Currently the NPS is CH-VM-DC02 The following is the configuration of this server There is a backup at \\truenas.coltscomputer.services\Mass-Storage\Computer Technician\Upload to Cloud\NPS The RADIUS server is used by the Unifi Controller for both Wifi netw...

Encrypted SMB

Windows Windows Server

SMB security enhancements Article 05/18/2023 15 contributors Feedback In this article SMB Encryption Enable SMB Encryption Preauthentication integrity New signing algorithm Show 2 more Applies to: Windows Server 2022, Windows S...

Enabling HTTPS for the BookStack web interface

BookStack

https://docs.sam.gy/books/bookstack/page/enabling-https-for-the-bookstack-web-interface When finished with this guide, will likely want to follow Using Cert Bot to get a Valid SSL certificate The default BookStack installation script for Ubuntu 20.04/18.04/1...