Get-Content C:\\Scripts\\deploy.ps1
Get-ADUser -Filter 'Enabled -eq True'
Get-SmbShare
Get-NetFirewallProfile
Get-ADOrganizationalUnit -Filter *
Get-Process | Where-Object {.CPU -gt 100}
Test-NetConnection google.com
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ProcessMitigation -Name powershell.exe
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADUser -Filter 'Enabled -eq True'
whoami
Get-Date
Get-Process -Name powershell
Get-NetFirewallProfile
Get-Process -Name powershell
whoami
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
hostname
Get-SmbOpenFile
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADUser -Filter 'Enabled -eq True'
Import-Module ActiveDirectory
Get-SmbShare
Get-NTFSAccess -Path C:\\SYSVOL
Get-SmbSession
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADPrincipalGroupMembership svc_backup
Test-Connection -ComputerName dc01.novatech.local
Set-Location C:\\Temp
Get-HotFix -Id KB5005565
Get-Process -Name powershell
Import-Module ActiveDirectory
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADGroup -Filter *
Get-LocalGroupMember -Group 'Administrators'
Set-ExecutionPolicy RemoteSigned -Scope Process
cls
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Remove-Item C:\\Temp\\old_log.log -Force
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Disconnect-PSDrive Z
Get-ADComputer -Filter *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
whoami
Get-ProcessMitigation -Name powershell.exe
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADUser -Filter 'Enabled -eq True'
New-Item -Path C:\\Temp -ItemType Directory
Get-EventLog -LogName Application -Newest 50
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADGroupMember 'Domain Admins'
Get-Process -Name powershell
Write-Host 'Operation terminée'
Get-Command -Module ActiveDirectory
Get-EventLog -LogName System -Newest 50
Set-Location C:\\Temp
hostname
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
whoami
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-SmbShare
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-HotFix -Id KB5005565
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
New-Item -Path C:\\Temp -ItemType Directory
Test-Connection -ComputerName dc01.novatech.local
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
cls
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-NTFSAccess -Path C:\\SYSVOL
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Command -Module ActiveDirectory
Write-Host 'Operation terminée'
Get-Process -Name powershell
Get-NTFSAccess -Path C:\\SYSVOL
ipconfig /all
Get-ADGroup -Filter *
ipconfig /all
Get-ADComputer -Filter *
Get-NetIPAddress
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Service -Name WinRM | Format-List *
Get-Process -Name powershell
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-NetIPAddress
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-NetIPAddress
Get-NetFirewallProfile
Write-Host 'Operation terminée'
Get-Date
Get-WmiObject Win32_OperatingSystem
cls
Get-HotFix -Id KB5005565
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Process | Where-Object {.CPU -gt 100}
Set-Location C:\\Temp
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADPrincipalGroupMembership svc_backup
Remove-Item C:\\Temp\\old_log.log -Force
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Process -Name powershell
Test-Connection -ComputerName dc01.novatech.local
Disconnect-PSDrive Z
Get-ADGroup -Filter *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Set-Location C:\\Temp
Get-Credential
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
