Test-NetConnection google.com
Test-NetConnection google.com
Get-Process | Where-Object {.CPU -gt 100}
Get-SmbSession
Get-SmbSession
Get-Date
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Command -Module ActiveDirectory
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Set-Location C:\\Temp
Get-Content C:\\Scripts\\deploy.ps1
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName System -Newest 50
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADComputer -Filter *
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-NetIPAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName System -Newest 50
Get-Service | Where-Object {.Status -eq 'Running'}
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
whoami
Get-NTFSAccess -Path C:\\SYSVOL
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
systeminfo
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Import-Module ActiveDirectory
Get-EventLog -LogName System -Newest 50
Get-SmbSession
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-SmbOpenFile
systeminfo
Write-Host 'Operation terminée'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADGroup -Filter *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-SmbSession
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-SmbShare
Get-LocalGroupMember -Group 'Administrators'
Get-ADGroup -Filter *
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADObject -LDAPFilter '(objectCategory=computer)'
New-Item -Path C:\\Temp -ItemType Directory
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADOrganizationalUnit -Filter *
Get-ADGroupMember 'Domain Admins'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Process | Where-Object {.CPU -gt 100}
Get-SmbOpenFile
cls
Get-ADOrganizationalUnit -Filter *
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ProcessMitigation -Name powershell.exe
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADComputer -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Date
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADUser -Filter 'Enabled -eq True'
Get-Content C:\\Scripts\\deploy.ps1
Test-NetConnection google.com
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Test-NetConnection google.com
Test-NetConnection google.com
Restart-Service -Name 'WinRM'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADOrganizationalUnit -Filter *
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Process | Where-Object {.CPU -gt 100}
Set-Location C:\\Temp
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ProcessMitigation -Name powershell.exe
Get-Credential
whoami
Get-ADUser -Filter 'Enabled -eq True'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Restart-Service -Name 'WinRM'
systeminfo
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Content C:\\Scripts\\deploy.ps1
Start-Sleep -Seconds 10
cls
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
hostname
whoami
Set-Location C:\\Temp
Get-ADComputer -Filter *
Get-CimInstance -ClassName Win32_QuickFixEngineering
cls
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Import-Module ActiveDirectory
Remove-Item C:\\Temp\\old_log.log -Force
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADPrincipalGroupMembership svc_backup
Import-Module ActiveDirectory
Disconnect-PSDrive Z
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Test-Connection -ComputerName dc01.novatech.local
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Command -Module ActiveDirectory
Get-ADGroup -Filter *
