Get-ADGroupMember 'Domain Admins'
Get-Content C:\\Scripts\\deploy.ps1
Write-Host 'Operation terminée'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Write-Host 'Operation terminée'
cls
Get-NetFirewallProfile
Get-ProcessMitigation -Name powershell.exe
Get-Credential
Get-ADGroup -Filter *
Get-ScheduledTask
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-SmbSession
cls
Test-Connection -ComputerName dc01.novatech.local
Get-EventLog -LogName System -Newest 50
Get-SmbSession
Get-EventLog -LogName System -Newest 50
Get-ChildItem -Recurse C:\\Scripts\\
Test-NetConnection google.com
Get-NetIPAddress
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADOrganizationalUnit -Filter *
Set-ExecutionPolicy RemoteSigned -Scope Process
Disconnect-PSDrive Z
hostname
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
systeminfo
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
systeminfo
Get-SmbSession
Disconnect-PSDrive Z
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADOrganizationalUnit -Filter *
Get-ADServiceAccount -Filter * -Properties *
Write-Host 'Operation terminée'
hostname
Get-ADPrincipalGroupMembership svc_backup
Restart-Service -Name 'WinRM'
Remove-Item C:\\Temp\\old_log.log -Force
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-SmbSession
Get-SmbOpenFile
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Test-NetConnection google.com
Start-Sleep -Seconds 10
Get-ChildItem -Recurse C:\\Scripts\\
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
whoami
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-HotFix -Id KB5005565
Get-ADComputer -Filter *
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-CimInstance -ClassName Win32_QuickFixEngineering
Disconnect-PSDrive Z
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Service | Where-Object {.Status -eq 'Running'}
Start-Sleep -Seconds 10
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADPrincipalGroupMembership svc_backup
Get-Command -Module ActiveDirectory
Get-Process -Name powershell
whoami
whoami
Get-WmiObject Win32_OperatingSystem
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Process | Where-Object {.CPU -gt 100}
cls
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName System -Newest 50
Get-ADGroupMember 'Domain Admins'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADOrganizationalUnit -Filter *
Get-Credential
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADOrganizationalUnit -Filter *
hostname
Write-Host 'Operation terminée'
Get-Service | Where-Object {.Status -eq 'Running'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-SmbShare
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Application -Newest 50
Get-ADGroup -Filter *
ipconfig /all
Get-SmbSession
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADOrganizationalUnit -Filter *
ipconfig /all
Get-Service | Where-Object {.Status -eq 'Running'}
whoami
Get-Process -Name powershell
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Service -Name WinRM | Format-List *
Get-ADComputer -Filter *
Get-Credential
Get-Process -Name powershell
New-Item -Path C:\\Temp -ItemType Directory
Get-SmbShare
Get-ADUser svc_backup -Properties lastLogonTimestamp
Start-Sleep -Seconds 10
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ScheduledTask
Get-ProcessMitigation -Name powershell.exe
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
ipconfig /all
Get-Process -Name powershell
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Process -Name powershell
