Pages

Banner 468 x 60px

 

Monday, March 27, 2017

Restart-Service WinRM

2 comments
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS C:\Users\admin.ax> Restart-Service WinRM
PS C:\Users\admin.ax> Set-Item wsman:\localhost\client\trustedhosts *

WinRM Security Configuration.
This command modifies the TrustedHosts list for the WinRM client. The computers in the TrustedHosts list might not be
authenticated. The client might send credential information to these computers. Are you sure that you want to modify
this list?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y
PS C:\Users\admin.ax> Enable-PSRemoting -Force
WinRM is already set up to receive requests on this computer.
WinRM is already set up for remote management on this computer.
PS C:\Users\admin.ax> Test-WsMan BSPJKTS032


ProductVendor   : Microsoft Corporation
ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0



PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service C:\ } -credential admin.ax
Cannot find any service with service name 'C:\'.
    + CategoryInfo          : ObjectNotFound: (C:\:String) [Get-Service], ServiceCommandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetServiceCommand
    + PSComputerName        : BSPJKTS032

PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service } -credential admin.ax

Status   Name               DisplayName                            PSComputerName
------   ----               -----------                            --------------
Stopped  AeLookupSvc        Application Experience                 BSPJKTS032
Stopped  ALG                Application Layer Gateway Service      BSPJKTS032
Running  AOS60$01           Microsoft Dynamics AX Object Server... BSPJKTS032
Running  AppHostSvc         Application Host Helper Service        BSPJKTS032
Stopped  AppIDSvc           Application Identity                   BSPJKTS032
Running  Appinfo            Application Information                BSPJKTS032
Stopped  AppMgmt            Application Management                 BSPJKTS032
Stopped  AppReadiness       App Readiness                          BSPJKTS032
Stopped  AppXSvc            AppX Deployment Service (AppXSVC)      BSPJKTS032
Stopped  aspnet_state       ASP.NET State Service                  BSPJKTS032
Stopped  AudioEndpointBu... Windows Audio Endpoint Builder         BSPJKTS032
Stopped  Audiosrv           Windows Audio                          BSPJKTS032
Running  AVP                Kaspersky Endpoint Security Service    BSPJKTS032
Running  avpsus             Kaspersky Seamless Update Service      BSPJKTS032
Running  BFE                Base Filtering Engine                  BSPJKTS032
Stopped  BITS               Background Intelligent Transfer Ser... BSPJKTS032
Running  BrokerInfrastru... Background Tasks Infrastructure Ser... BSPJKTS032
Stopped  Browser            Computer Browser                       BSPJKTS032
Stopped  c2wts              Claims to Windows Token Service        BSPJKTS032
Running  CertPropSvc        Certificate Propagation                BSPJKTS032
Stopped  COMSysApp          COM+ System Application                BSPJKTS032
Running  CryptSvc           Cryptographic Services                 BSPJKTS032
Running  dcevt64            DSM SA Event Manager                   BSPJKTS032
Running  DcomLaunch         DCOM Server Process Launcher           BSPJKTS032
Running  dcstor64           DSM SA Data Manager                    BSPJKTS032
Stopped  defragsvc          Optimize drives                        BSPJKTS032
Stopped  DeviceAssociati... Device Association Service             BSPJKTS032
Stopped  DeviceInstall      Device Install Service                 BSPJKTS032
Running  Dhcp               DHCP Client                            BSPJKTS032
Running  Dnscache           DNS Client                             BSPJKTS032
Stopped  dot3svc            Wired AutoConfig                       BSPJKTS032
Running  DPS                Diagnostic Policy Service              BSPJKTS032
Stopped  DsmSvc             Device Setup Manager                   BSPJKTS032
Stopped  Eaphost            Extensible Authentication Protocol     BSPJKTS032
Stopped  EFS                Encrypting File System (EFS)           BSPJKTS032
Running  EventLog           Windows Event Log                      BSPJKTS032
Running  EventSystem        COM+ Event System                      BSPJKTS032
Stopped  fdPHost            Function Discovery Provider Host       BSPJKTS032
Stopped  FDResPub           Function Discovery Resource Publica... BSPJKTS032
Running  FontCache          Windows Font Cache Service             BSPJKTS032
Stopped  FontCache3.0.0.0   Windows Presentation Foundation Fon... BSPJKTS032
Stopped  fussvc             Windows App Certification Kit Fast ... BSPJKTS032
Running  gpsvc              Group Policy Client                    BSPJKTS032
Stopped  hidserv            Human Interface Device Service         BSPJKTS032
Stopped  hkmsvc             Health Key and Certificate Management  BSPJKTS032
Stopped  IEEtwCollectorS... Internet Explorer ETW Collector Ser... BSPJKTS032
Running  IISADMIN           IIS Admin Service                      BSPJKTS032
Running  IKEEXT             IKE and AuthIP IPsec Keying Modules    BSPJKTS032
Running  iphlpsvc           IP Helper                              BSPJKTS032
Running  IpOverUsbSvc       Windows Phone IP over USB Transport... BSPJKTS032
Stopped  KeyIso             CNG Key Isolation                      BSPJKTS032
Running  klnagent           Kaspersky Security Center Network A... BSPJKTS032
Stopped  KPSSVC             KDC Proxy Server service (KPS)         BSPJKTS032
Stopped  KtmRm              KtmRm for Distributed Transaction C... BSPJKTS032
Running  LanmanServer       Server                                 BSPJKTS032
Running  LanmanWorkstation  Workstation                            BSPJKTS032
Stopped  lltdsvc            Link-Layer Topology Discovery Mapper   BSPJKTS032
Running  lmhosts            TCP/IP NetBIOS Helper                  BSPJKTS032
Running  LSM                Local Session Manager                  BSPJKTS032
Stopped  MMCSS              Multimedia Class Scheduler             BSPJKTS032
Stopped  MozillaMaintenance Mozilla Maintenance Service            BSPJKTS032
Running  MpsSvc             Windows Firewall                       BSPJKTS032
Running  MR2012Applicati... Management Reporter 2012 Applicatio... BSPJKTS032
Running  MR2012ProcessSe... Management Reporter 2012 Process Se... BSPJKTS032
Running  MSDTC              Distributed Transaction Coordinator    BSPJKTS032
Running  MSiSCSI            Microsoft iSCSI Initiator Service      BSPJKTS032
Stopped  msiserver          Windows Installer                      BSPJKTS032
Running  MSSQL$MICROSOFT... Windows Internal Database              BSPJKTS032
Stopped  napagent           Network Access Protection Agent        BSPJKTS032
Stopped  NcaSvc             Network Connectivity Assistant         BSPJKTS032
Running  Netlogon           Netlogon                               BSPJKTS032
Stopped  Netman             Network Connections                    BSPJKTS032
Stopped  NetMsmqActivator   Net.Msmq Listener Adapter              BSPJKTS032
Running  NetPipeActivator   Net.Pipe Listener Adapter              BSPJKTS032
Running  netprofm           Network List Service                   BSPJKTS032
Running  NetTcpActivator    Net.Tcp Listener Adapter               BSPJKTS032
Running  NetTcpPortSharing  Net.Tcp Port Sharing Service           BSPJKTS032
Running  NlaSvc             Network Location Awareness             BSPJKTS032
Running  nsi                Network Store Interface Service        BSPJKTS032
Running  omsad              DSM SA Shared Services                 BSPJKTS032
Stopped  ose64              Office 64 Source Engine                BSPJKTS032
Stopped  osppsvc            Office Software Protection Platform    BSPJKTS032
Stopped  PerfHost           Performance Counter DLL Host           BSPJKTS032
Stopped  pla                Performance Logs & Alerts              BSPJKTS032
Running  PlugPlay           Plug and Play                          BSPJKTS032
Running  PolicyAgent        IPsec Policy Agent                     BSPJKTS032
Running  Power              Power                                  BSPJKTS032
Stopped  PrintNotify        Printer Extensions and Notifications   BSPJKTS032
Running  ProfSvc            User Profile Service                   BSPJKTS032
Stopped  RasAuto            Remote Access Auto Connection Manager  BSPJKTS032
Stopped  RasMan             Remote Access Connection Manager       BSPJKTS032
Running  RDMS               Remote Desktop Management              BSPJKTS032
Stopped  RemoteAccess       Routing and Remote Access              BSPJKTS032
Stopped  RemoteRegistry     Remote Registry                        BSPJKTS032
Running  RpcEptMapper       RPC Endpoint Mapper                    BSPJKTS032
Stopped  RpcLocator         Remote Procedure Call (RPC) Locator    BSPJKTS032
Running  RpcSs              Remote Procedure Call (RPC)            BSPJKTS032
Stopped  RSoPProv           Resultant Set of Policy Provider       BSPJKTS032
Stopped  sacsvr             Special Administration Console Helper  BSPJKTS032
Running  SamSs              Security Accounts Manager              BSPJKTS032
Stopped  SCardSvr           Smart Card                             BSPJKTS032
Running  ScDeviceEnum       Smart Card Device Enumeration Service  BSPJKTS032
Running  Schedule           Task Scheduler                         BSPJKTS032
Stopped  SCPolicySvc        Smart Card Removal Policy              BSPJKTS032
Running  seclogon           Secondary Logon                        BSPJKTS032
Running  SENS               System Event Notification Service      BSPJKTS032
Running  Server Administ... DSM SA Connection Service              BSPJKTS032
Running  SessionEnv         Remote Desktop Configuration           BSPJKTS032
Stopped  SharedAccess       Internet Connection Sharing (ICS)      BSPJKTS032
Running  ShellHWDetection   Shell Hardware Detection               BSPJKTS032
Stopped  smphost            Microsoft Storage Spaces SMP           BSPJKTS032
Stopped  SNMPTRAP           SNMP Trap                              BSPJKTS032
Running  Spooler            Print Spooler                          BSPJKTS032
Stopped  sppsvc             Software Protection                    BSPJKTS032
Running  SQLWriter          SQL Server VSS Writer                  BSPJKTS032
Stopped  SSDPSRV            SSDP Discovery                         BSPJKTS032
Stopped  SstpSvc            Secure Socket Tunneling Protocol Se... BSPJKTS032
Stopped  svsvc              Spot Verifier                          BSPJKTS032
Stopped  swprv              Microsoft Software Shadow Copy Prov... BSPJKTS032
Running  SysMain            Superfetch                             BSPJKTS032
Running  SystemEventsBroker System Events Broker                   BSPJKTS032
Stopped  TapiSrv            Telephony                              BSPJKTS032
Stopped  Te.Service         Te.Service                             BSPJKTS032
Running  TermService        Remote Desktop Services                BSPJKTS032
Running  Themes             Themes                                 BSPJKTS032
Stopped  THREADORDER        Thread Ordering Server                 BSPJKTS032
Stopped  TieringEngineSe... Storage Tiers Management               BSPJKTS032
Running  TrkWks             Distributed Link Tracking Client       BSPJKTS032
Stopped  TrustedInstaller   Windows Modules Installer              BSPJKTS032
Running  TScPubRPC          RemoteApp and Desktop Connection Ma... BSPJKTS032
Running  Tssdis             Remote Desktop Connection Broker       BSPJKTS032
Running  UALSVC             User Access Logging Service            BSPJKTS032
Stopped  UI0Detect          Interactive Services Detection         BSPJKTS032
Running  UmRdpService       Remote Desktop Services UserMode Po... BSPJKTS032
Stopped  upnphost           UPnP Device Host                       BSPJKTS032
Stopped  VaultSvc           Credential Manager                     BSPJKTS032
Stopped  vds                Virtual Disk                           BSPJKTS032
Stopped  vmicguestinterface Hyper-V Guest Service Interface        BSPJKTS032
Stopped  vmicheartbeat      Hyper-V Heartbeat Service              BSPJKTS032
Stopped  vmickvpexchange    Hyper-V Data Exchange Service          BSPJKTS032
Stopped  vmicrdv            Hyper-V Remote Desktop Virtualizati... BSPJKTS032
Stopped  vmicshutdown       Hyper-V Guest Shutdown Service         BSPJKTS032
Stopped  vmictimesync       Hyper-V Time Synchronization Service   BSPJKTS032
Stopped  vmicvss            Hyper-V Volume Shadow Copy Requestor   BSPJKTS032
Stopped  VsEtwService120    Visual Studio ETW Event Collection ... BSPJKTS032
Stopped  VSS                Volume Shadow Copy                     BSPJKTS032
Stopped  VSStandardColle... Visual Studio Standard Collector Se... BSPJKTS032
Running  W32Time            Windows Time                           BSPJKTS032
Stopped  w3logsvc           W3C Logging Service                    BSPJKTS032
Running  W3SVC              World Wide Web Publishing Service      BSPJKTS032
Running  WAS                Windows Process Activation Service     BSPJKTS032
Stopped  wbengine           Block Level Backup Engine Service      BSPJKTS032
Running  Wcmsvc             Windows Connection Manager             BSPJKTS032
Stopped  WcsPlugInService   Windows Color System                   BSPJKTS032
Stopped  WdiServiceHost     Diagnostic Service Host                BSPJKTS032
Running  WdiSystemHost      Diagnostic System Host                 BSPJKTS032
Stopped  Wecsvc             Windows Event Collector                BSPJKTS032
Stopped  WEPHOSTSVC         Windows Encryption Provider Host Se... BSPJKTS032
Stopped  wercplsupport      Problem Reports and Solutions Contr... BSPJKTS032
Stopped  WerSvc             Windows Error Reporting Service        BSPJKTS032
Running  WIDWriter          Windows Internal Database VSS Writer   BSPJKTS032
Running  WinHttpAutoProx... WinHTTP Web Proxy Auto-Discovery Se... BSPJKTS032
Running  Winmgmt            Windows Management Instrumentation     BSPJKTS032
Running  WinRM              Windows Remote Management (WS-Manag... BSPJKTS032
Stopped  wmiApSrv           WMI Performance Adapter                BSPJKTS032
Stopped  WPDBusEnum         Portable Device Enumerator Service     BSPJKTS032
Running  WSearch            Windows Search                         BSPJKTS032
Stopped  WSService          Windows Store Service (WSService)      BSPJKTS032
Stopped  wuauserv           Windows Update                         BSPJKTS032
Stopped  wudfsvc            Windows Driver Foundation - User-mo... BSPJKTS032
Running  Zabbix Agent       Zabbix Agent                           BSPJKTS032


PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service -Name Mic* } -credential admin.
ax
PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service -Name Microsoft* } -credential
admin.ax
PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service -Name AOS60$01 } -credential ad
min.ax
Cannot find any service with service name 'AOS60'.
    + CategoryInfo          : ObjectNotFound: (AOS60:String) [Get-Service], ServiceCommandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetServiceCommand
    + PSComputerName        : BSPJKTS032

PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service -Name "AOS60$01" } -credential
admin.ax
Cannot find any service with service name 'AOS60'.
    + CategoryInfo          : ObjectNotFound: (AOS60:String) [Get-Service], ServiceCommandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetServiceCommand
    + PSComputerName        : BSPJKTS032

PS C:\Users\admin.ax> Invoke-Command -ComputerName BSPJKTS032 -ScriptBlock { Get-Service -Name AOS* } -credential admin.
ax

Status   Name               DisplayName                            PSComputerName
------   ----               -----------                            --------------
Running  AOS60$01           Microsoft Dynamics AX Object Server... BSPJKTS032


PS C:\Users\admin.ax>






Mohammad Shoaib
ERP Technical Consultant

shoaib@bizintek.com | +62-08119629502
PT. Business Intelligence Technologies 
Tamara Center Level 14 Suite 1405, Jalan Jendral Sudirman 24, DKI Jakarta, Indonesia
 | www.bizintek.com



2 comments:

Anonymous said...

I like the valuable info you provide in your articles.
I'll bookmark your blog and check again here regularly. I'm quite certain I'll learn many new
stuff right here! Good luck for the next!

Anonymous said...

Hi there this is kind of of off topic but I was wondering if blogs
use WYSIWYG editors or if you have to manually code with HTML.
I'm starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience.
Any help would be greatly appreciated!

A financial dimension value is based on the LAND-00013 record and has been used on a transaction. You cannot delete the LAND-00013 record AX 2012

 A financial dimension value is based on the LAND-00013 record and has been used on a  transaction. You cannot delete the LAND-00013 record ...