Remove PDK 6.2
Hi everyone,
I am new to all SAP Netweaver thing, so my questions might have some "obvious" answers, but I just dont seem to find them.
I installed EP6 SP6. Than following one of the e-learning courses provided by SAP I tried to install PDK (but i think I choose the wrong version 6.2, instead of 6.6). Now I want to uninstall 6.2, and install 6.6, but I dont really know where to start... After I read some posts on this forum, I thought that the right way to do it would be Archive Remover, but there i see many packages com.sap.portal.pdk*. I am not sure if is right to remove these all without damage something in the portal.
Any help or further hints would be highly apreciated.
Hi Noel and thanks for the answer.
I also thought of this, but I saw some postings saying that the best practice would be to remove the previous version without installing the new one. Another issue would be: I tried to run TemplateJSPDynPage...I downloaded the par file from the portal, I imported in into eclipse but than I get 25 errors. I think this was from the missing libraries, so I downloaded the libraries from the portal and I imported in eclipse html.jar but: Than I still have 11 errors which I think are because of the missing htmlbridge.jar but I cannot find this jar. Kind Status Priority Description Resource In Folder Location
Task Not Completed Normal TODO : Implement FirstsessionbeanBean.java myfirstejbmodule/ejbModule/myfirstpackage line 33
Error The import com.sapportals.portal.htmlb cannot be resolved TemplateJSPDynPage.java myJSP/src.api line 28
Error The import com.sapportals.portal.htmlb cannot be resolved TemplateJSPDynPage.java myJSP/src.api line 29
Error PageProcessorComponent cannot be resolved or is not a valid superclass TemplateJSPDynPage.java myJSP/src.api line 45
Error Type mismatch: cannot convert from TemplateJSPDynPage.RealJSPDynPage to DynPage TemplateJSPDynPage.java myJSP/src.api line 60
Error JSPDynPage cannot be resolved or is not a valid superclass TemplateJSPDynPage.java myJSP/src.api line 67
Error The method getRequest() is undefined for the type TemplateJSPDynPage.RealJSPDynPage TemplateJSPDynPage.java myJSP/src.api line 126
Error The method getComponentByName(String) is undefined for the type TemplateJSPDynPage.RealJSPDynPage TemplateJSPDynPage.java myJSP/src.api line 180
Error The method setJspName(String) is undefined for the type TemplateJSPDynPage.RealJSPDynPage TemplateJSPDynPage.java myJSP/src.api line 201
Error The method setJspName(String) is undefined for the type TemplateJSPDynPage.RealJSPDynPage TemplateJSPDynPage.java myJSP/src.api line 205
Error The method setJspName(String) is undefined for the type TemplateJSPDynPage.RealJSPDynPage TemplateJSPDynPage.java myJSP/src.api line 209
Do you know what am I doing wrong here, or what should I do? I am new to this technology and I am a little bit confused....
Thank you for your help
Similar Messages
-
Different ways to deploye .par file
Hi,
How many ways we have to deploy .par file. As per my knowledge folloing are the ways
1. Deploying from NWDS
2. Portal -> Java Developer -> Portal Deployment
Is there any other way to deploy the par file like we can deploy .ear files from SDM.
We would like to remove PDK. So, the Java Developer role will be deleted.
Please let me know if we have any other ways to deploy
ThanksHi Bobby,
This is another way for PAR deploy
System Administration -- Support -- Portal Runtime -- Administration Console
Apart from that you check these links out :
Converting .EAR file to .SDA
Also for intro..,
http://help.sap.com/saphelp_nw04/helpdata/en/2d/b8b2426dbec86ae10000000a155106/frameset.htm
SAP Note: 696084 (For Multiple PAR deployment)
Regards, -
JDeveloper 10.1.3.2 pdk-struts taglib doesn't work
Hi all,
I just installed new jDev version (10.1.3.2) and I migrated all projects and setting from 10.1.3.1, but I still got a little/big problem with PDK-Struts taglib.
In the previous jDev version portlet add-in wasn't include and to use pdk-struts integrate in the IDE I managed it as a JSP TagLib and everythings works fine.
In new version the taglib in native and ready (it doesn't required to be registered!) to use but when I'm building the project I found and exception
Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
mind!!!
- the same project in version 10.1.3.1 has no problem to build
- I checked and seleted all the libraries required
Anyone knows why the new jDev version doesn't work??
please someone helpMe!!!!
Regards
spig@Yea, I had those "is not a registered namespace in TLD" errors too, but regarding Struts HTML... I had to go to the Project properties and add the library.. (It went missing during conversion)
Its frustrating and I know how you feel. Try this, try that and still doesnt work. My advice is to remove taglibs. Close Jdev. Open Jdev add them again. It have to work. Also it might help to delete class directories. Also be aware that some libraries are kept in "\WEB-INF\lib" and during conversion they remained (those libraries were from old Jdev you have to replace them with new version)
So, all in all keep tryng, it have to work :)
Good luck... -
PDK pl/sql add_item function and documents table
When we use the add_item function to add an item and upload its content, does the add_item function uploads document content to the document table in the repository?(like the upload_blob() function)
If yes, can I remove the uploaded document from the filesystem after having uploaded it in the documents table?
The PDK API says that there is no supported view for querying the document table. Is there any other way to query the documents in the document table? Or any additional information about how the documents are stored in the document table or how the documents table works?Duplicate thread ->
PL/SQL add procedure with nested table
Please remove it & marked it as duplicate.
Regards.
Satyaki De. -
Hi,
Installed EP6 SP9 and imported the PDK through SDM. Some links under Java Development->User Interface Development are not showing. It says <b>404 not found The requested resource does not exist</b>.
The same is the case with some links under Java Development->Portal Development.
Can anyone help me out with this probelm. Do I need to apply some PDK patch?
Thanks in advance,
MadhuHi Madhu,
instead of installing PDK SP9 (60.9.0), install PDK SP6 (60.6.0) and also the PDK 6.0 SP9 Patch (pdk60patch.zip).
PDK for SP6: ftp://ftp.sap.com/pub/sdn/devkits/PDK/6.0.6.0_PDK_BP.zip
PDK Patch for SP9: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/pdk60patch.zip
For removing once installed business packages, see Deinstalling a Business Package
This should help you solve your problem,
Robert
PS: Please consider rewarding points for helpfull answers! -
Disabled standard role com.sap.pct.pdk.JavaDeveloper
Hi - I've logged an OSS but if anyone can help me quicker it ould be most appreciated;
the role com.sap.pct.pdk.JavaDeveloper can be found in the portal
content location
pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.pct.pdk/Roles/com.sap.pct.pdk.JavaDeveloper
when i double click on that role it shows only one Workset called
Examples and within it a workset called OBN Examples
I searched the SDN and found this post:
/community [original link is broken]
forumID=53&threadID=19464&messageID=162992
which sounded exactly right. sure enough the role was assigned to the
administrator.once i removed it, the role is now not working for any of
my logons - test users or Administrator.
in addition we do not have the object com.sap.pdk.JavaDeveloper in our
system.
help
andysorry, probably haven't explained it well enough.
it used to have lots of entry points, yes. but none of them were visible in the portal catalogue, except one "Examples"
the linked post describes exactly the same problems. when i followed the recommended steps "remove the role from the Administrator account" in that post, the role stopped working, apart from the "Examples" workset. Apparently we are not using NWDI and apparently this has some relevance, in that we can't create the system alias for the webDynpro as the post also recommends.
to recap - the standard role, since unassigning it from the administrator account, now does not function for any user. only the workset "Examples" is visible in the role. this was the case before. trying to view the other objects in the role is the reason I was working on it., since we have a requirement to add the Portal Logviewer in to the content developer role, without giving them the whole of the PDK/PRT maintenance applications. it now transpires that they were not displaying and were hidden becasue they are not Iviews, but are components accessed directly.
Does it need to be rebuilt? if so , how?
thanks ,
andy -
Need help in post-installation steps of the PDK
Hello,
I have installed Java PDK 6.9 instead of 6.2.
At the post-installation steps I need to:
<i>The example iViews in the Portal Development Kit connect to a SAP System with the system alias PDK_R3_BACKEND.
To run these examples you must define a system object for a test SAP System in your system landscape and assign the following aliases:
1. PDK_R3_BACKEND Reference to a R/3 system of your custom landscape.
2. PDKDummySystem Reference to provided system OBN-3. PDKDummySystem.
WebDynpro Reference to provided system WebDynpro.</i>
My question is: When I create this System, which type template should it be and which configuration besides the above aliases should it have?
RoyHey Aviad,
Yes I did, in my case I've installed PDK SP 9 over SP2 which is prohibited. If this is your case as well do the following:
1) From the Undeployment tab of the SDM select the com.sap.pct.pdk..
components.
2) Using the Archive remover tool which can be accessed from
System Administration > Support > Portal Runtime > Administration
Console > Archive Remover --> Remove the portal applications with prefixcom.sap.pct.pdk...
3) Navigate to Content Administration > Portal content > Content
Provided by SAP > Platform Add-Ons > Developer Content
and remove all the contents below this folder.
4) Restart the server
After this you can deploy the SP9 business package using the SDM.
Hope it helps,
Roy -
When trying to use the PDK Struts tags in a portlet, I receive the following error message when the portlet has been deployed to a 10g portal:
[ServletException in:/WEB-INF/jsp/tiles/portal/index.jsp] action'
Even with debug mode enabled on the server, that's the only detail I get. My config is as follows:
IN SERVER.XML
<taglib>
<taglib-uri>/WEB-INF/tld/pdk-struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/tld/pdk-struts-html.tld</taglib-location>
</taglib>
IN THE TAGLIB INCLUDE
<%@ taglib uri='/WEB-INF/tld/pdk-struts-html.tld' prefix='pdk' %>
IN THE JSP:
<pdk:link page="/servlet/letterView">Link text</pdk:link>
VERIFIED:
- The portlet works without the tag included.
- It works using the standard Struts html:link tag, but of course generates the resulting page in it's own screen, outside of the portal container
- The TLD is indeed in the location listed in the URI
- The following two JARs are included in the LIB directory: pdkjava.jar, pdkstruts.jar
- I removed all attributes from the tag and received a more detailed message (Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", or "page"') so it seems like everything that needs to be in place is indeed in place -- it seems like I'm just misusing the tag.
Any help would be appreciated. Thanks!The problem was an old copy of the struts.jar file, which was missing the calculateUrl() method called by the Oracle tag. With a new struts.jar file, all was good.
-
PDK 6.0 Software Component and SCA File Not Found
We are caught in a scenario where we don't find the PDK 6.0 Software Component in the SLD and we are not sure how to get this in the SLD. In the current SLD(SP16) it shows PDK 5.0 Software Component. Also kidnly let us know how to get the SCA file in order to be able to Check-In in the CMS against the PDK 6.0 Software Component.
pjmorce wrote:
I have a little web service that works fine when i deploy it on a tomcat 6.0 server using eclipse.
It is used to transform a XML file (that contains a reference to a file img/logo.gif) into a PDF file. The PDF file is generated with that logo.
The img/logo.gif file is into a JAR file used the WS.
Remove the img/logo.gif from your JAR and deploy the web service again on tomcat 6.0 with eclipse.
You will probably see that the service works fine because it never loaded your GIF from the JAR. It is more likely the reference out of the XML is interpreted as path on the file system. -
Hell!!
I am working on EP 6.0 SP9 and I was supposed to install PDK SP9. But i deployed PDK sp14 throug SDM GUI.
I would like to undeploy the pdk 14 but in the SDM Gui when i click Undeployment tab.... there are number of items in the list, I am unable to determine which files belong to PDK SP14. Could you please let me know how to accomplish this.
Also could you also send me the download link for PDK SP9.
Thanks and points will be awarded.
Regards
MichaelHi,
You must follow the following sequence.
1. Go to Java Development(which is viewed by users with Java developer role) - Portal Tools - Portal Mass remover. Select all entries with <b>com.sap.pct.pdk</b> and only such entries.Then copy and paste in required space.Click Remove.
2. Now in Content Administration->Content Provided by SAP->Platform ad ons->Developer Content delete the folder Developer Content, some system object may not be deleted. So in that case you would have to go to System Administration->System Configuration->System Landscape.Select the corresponding systems and delete them. Then you would be able to delete the rest of the Portal Content.
This is the right way to delete it and I was myself sucessfully able to undeploy the content with this method.
Regards,
Harish -
PDK Portlet not calling Struts Action?
Hello,
The problem I have is the PDK struts-portlet jsp page is not invoking my action class after a login page is submitted. The same page seems to get refreshed. No error is registered. However, the same application instance invoked outside of the portal is working fine! Any ideas? Thanks.Hi,
I don't know how to get the index.faces thing to work but what i did do:
1. create a new jsp in the Page flow Editor
2. renamed the "default" forward to "default1"
3. double clicked on my new jsp and then right clicked to "link existing node". I selected the "begin" action
4. i opened up the new jsp and removed the html, head and body tags. My new jsp only has in it:
==================
<%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
<%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
<%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
Beehive NetUI JavaServer Page - ${pageContext.request.requestURI}==================
5. The i republished my code and the begin action was executed. -
Hi,
I just downloded the pdk from SDN. It has come as a rar file called "NetweaverDeveloperCockpit_NW04SP12.rar" I don't know how to install it in the portal I have. Please help me how to install this rar file.
Thanks,
Bhagya.Here are the instructions from the PDF included in the rar file:
<b>Technical Description and Configuration Information
Purpose</b>
The following procedure describes how to install the Business Package Netweaver Developer Cockpit (PDK) in a portal and how to configure the portal so that the example iViews work correctly.
<b>Prerequisites</b>
You have installed a standard SAP Enterprise Portal either locally on your personal PC or on a test server. Optionally you have installed SAP NetWeaver Developer Studio.
You have uninstalled older PDK versions completely with the Archive Remover tool and Portal Content Studio.
If you use MaxDB as Database, you have to deploy MaxDB JDBC Driver manually and register it at the portal. For more information see SAP Note 773401
<b>Installation</b>
Import the Business Package for the Portal Development Kit into your portal installation.
The business package is delivered in SCA format and you have to use the Software Deployment Manager (SDM) to install it. For more information, see SAP Note 731386
Import the attached ICE transport package via the Content Management->Content Exchange->Package upload. Import the the file DeveloperContent.zip As a result you see the folder DeveloperContent under the KM repository documents.
<b>Post- Installation Steps</b>
<b>Configure the Portal for the Netweaver Developer Cockpit</b>
The connector example iViews in the Portal Development Kit connect to SAP Backend System with the system alias PDK_R3_BACKEND.
To run these examples you must define a system object for a test SAP Backend System in your system landscape and assign the following aliases: PDK_R3_BACKEND
The JDBC example iViews use a JDBC database with the alias: LocalMaxDB
To run these examples you must configure the system object LocalMaxDB or define a new one and add in your system landscape and assign the following aliases: LocalMaxDB.
The Dummy Object Based Navigation Examples (without real Backend connection) require that you the System Alias PDKDummySystem to the System PDKDummySystem
According to your authentication policy you also have to maintain Usermapping and afterwards you have to configure Distributed Query Engine (DQE) for the systems. See SAP help portal and tutorial forfurther information.
The System Landscape Directory SLD has to be maintained for the WebDynpro Examples which require a backend connection. See Web Dynpro Tutorials for details.
For more information on how to create system objects and assigning aliases, see Enterprise Portal Administration Guide 6.0->Portal Platform->System Administration->System Landscape->System Landscape Editor.
To ensure that you have the permission to run all the applications in the business package, you must be assigned to the following portal roles:
Role ID - Purpose
Super Administrator - for all Portal operations and permissions
Administrator - Optional
com.sap.pct.pdk.JavaDeveloper - The NDC role
ContentManager (optional)- For importing ice content.
<b>Restart Server or iView Runtime Container</b>
This is recommended to deploy all portal archives. Known SDM limitation in NW04.
<b>Authentication of WebDynpro Content Administrator and SLD</b>
WebDynpro Content Administrator and System Landscape Directory need a SAP WebAS Java Server Administrator authentication. Usually the portal administrator is not assigned to the Java Server role Administrator so username and password with the correct permissions for these iViews have to be provided.
<b>Create user in SAP Backend System</b>
The example iViews connect to the SAP System using the username you are currently logged on to the portal. You must create a user in the SAP System with the same user ID as your portal user or define any user mapped to the portal user via usermapping.
Portal users accessing an SAP System via remote function call (RFC) must have a user or be mapped to a user in the SAP System with the following authorizations.
Authorization object S_RFC with the following field values:
ACTVT: 16
RFC_TYPE: FUGR
RFC_NAME: RFC1, RSAN, SDIF, SDIFRUNTIME, SDWZ, SKBW, SPR4, SPRT, SRFC, SSCV, SURL, SUSO, SUSW, SU_USER, SWOR, SYST, SYSU
<b>The following authorization is only necessary for Drag&Relate:</b>
Authorization object S_TCODE with the following field value:
TCD: SPO1 -
On page http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&_mode=3, I click the link to download latest PDK. After answering the questions, I get a file PDK.ZIP downloaded. Trying to unzip gives:
Dll: e:\WinZip\WZ32.DLL - 1998-10-17 07:00
Extracting to "X:\temp\pdk\"
Use Path: yes Overlay Files: no
Extracting add.portlets.to.provider.xml.html
Extracting adding.customization.html
bad CRC a190ace9 (should be 4434ce84)
Warning: the size of the extracted file (3905) does not match the uncompressed size (22412) recorded in the zip file
Interrupted
Client is WIn2000 IE5.5 SP 2
I have tried several times over the last couple of days. Download always completes correctly, but error remains. Am I really the ONLY user trying to download the PDK?
Please fix ASAP or provide workaround.
Best regards
Sten VesterliLet's try a repair install of iTunes.
Restart the PC first.
If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
Can you launch your iTunes now? -
Uninstal PDK 6.2 and install PDK 6.2
Hi everyone,
I am new to all SAP Netweaver thing, so my questions might have some "obvious" answers, but I just dont seem to find them.
I installed EP6 SP6. Than following one of the e-learning courses provided by SAP I tried to install PDK (but i think I choose the wrong version 6.2, instead of 6.6). Now I want to uninstall 6.2, and install 6.6, but I dont really know where to start... After I read some posts on this forum, I thought that the right way to do it would be Archive Remover, but there i see many packages com.sap.portal.pdk*. I am not sure if is right to remove these all without damage something in the portal.
Any help or further hints would be highly apreciated.
RegardsHi,
I think you can try installing the PDK version 6.6 without uninstalling 6.2. What i understand from the .PAR file is that, it is a group of Portal components.
Portal components in 6.6 should be the upgraded version from 6.2. So i think it will replace the old component with new component.
Hope this helps
arun -
8/29/2014 7:15am
It seems to me that if Microsoft's platform can not fix it with the troubleshooter that the troubleshooter sucks. It does not know when errors are thrown so your developer sucks on creating software for errors that are popping up in your software?
if a error is thrown in Windows 8 it should catch it upon a thrown error in programming? This hsould be a level 1 ticket. Since when I call you support for error in your product no one wants to address problems in your software and get mea tech to resolve
it?
The question now is how do I fix this and why is it causing me an internal error 500 for my web server install?
I may have other issues but I need access to my web server through my browser I used fsocketopen to troubleshoot it?
It gets back a internal 500 on Gecko process in firefox and on IE it just won't serve out the document in my web server abyss or apache? So the question is what service is broken so I can't serve my [web server] pages out? Let me go through all the event
logs that I have with errors below?
Under Applications:
1) Failure to load the application settings for package microsoft.windowscommunicationsapps_8wekyb3d8bbwe. Error Code: 10
2) LMS Service cannot connect to Intel(R) MEI driver. Error level 1
3) Failure to load the application settings for package microsoft.windowscommunicationsapps_8wekyb3d8bbwe. Error Code: 3
4) SearchIndexer (3476) Windows: The database engine attached a database (1, C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb). (Time=0 seconds)
5) Internal Timing Sequence: [1] 0.000, [2] 0.000, [3] 0.125, [4] 0.000, [5] 0.000, [6] 0.000, [7] 0.000, [8] 0.000, [9] 0.000, [10] 0.000, [11] 0.000, [12] 0.000.
Saved Cache: 1 0: Evenet Id level 326.
6) SearchIndexer (3476) Windows: The database engine started a new instance (0). (Time=0 seconds)
7) Internal Timing Sequence: [1] 0.000, [2] 0.000, [3] 0.000, [4] 0.000, [5] 0.000, [6] 0.000, [7] 0.000, [8] 0.000, [9] 0.000, [10] 0.000. eveent level 105
8) SearchIndexer (3476) Windows: The database engine (6.03.9600.0000) is starting a new instance (0). Error Level 102
Under Security:
1) We might want to check this out here User Account Management changed?
Under Setup: no errors.
Under System below:
1) Name resolution for the name win8.ipv6.microsoft.com. timed out after none of the configured DNS servers responded.Event level 1014
2) Intel(R) 82567LM-3 Gigabit Network Connection
Network link is disconnected.
3) The system has returned from a low power state.
Sleep Time: 2014-08-29T05:10:07.602701000Z
Wake Time: 2014-08-29T13:13:47.945773100Z
Wake Source: Device -USB Root Hub : Error level 1
4) The browser has forced an election on network \Device\NetBT_Tcpip_{58565081-3013-43B6-AE07-CC89C71F6036} because a master browser was stopped. Event Id 8033.
5) The driver \Driver\WudfRd failed to load for the device SWD\WPDBUSENUM\_??_USBSTOR#Disk&Ven_EPSON&Prod_Storage&Rev_1.00#7&2d369789&0&533536503532383375&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}. Event error 219.
6) The driver \Driver\WudfRd failed to load for the device SWD\WPDBUSENUM\{3c83e4cf-28e9-11e4-827b-b8ac6f8aec21}#0000000000004000. Error Level Id 219.
7) The UMDF reflector was unable to complete startup because the WUDFPf service was not found. This service may be started later during boot, at which point Windows will attempt to start the device again. Error Id 10114.
8) Unable to bind to the underlying transport for [::]:80. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine. The data field contains the error number. Event Id 15005.
9) The supersafer64 service failed to start due to the following error:
The system cannot find the file specified. Event ID 7000.
10) The SNMP Service encountered an error while accessing the registry key SYSTEM\CurrentControlSet\Services\SNMP\Parameters\TrapConfiguration. Error: 1500.
11) The SAS Core Service service failed to start due to the following error:
The system cannot find the file specified. 7000
12 The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://*:80/ for site 1. The site has been disabled. The data field contains the error number. 1004
13) The driver \Driver\WudfRd failed to load for the device SWD\WPDBUSENUM\_??_USBSTOR#Disk&Ven_EPSON&Prod_Storage&Rev_1.00#7&2d369789&0&533536503532383375&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}. Error level 219
14) Name resolution for the name win8.ipv6.microsoft.com. timed out after none of the configured DNS servers responded. Error level 1014.
Now I need help with all these error since Windows 8 with maybe 15 applications is failing after no setup errors? What would cause these we need to find out? Since I can not use your product with so many developer errors? and to put out a products that doesn
work is pointless? So please call me and have some help me through the errors and tell your support to stop ignoring the errors that broke the products?
Sincerely, William Dunlap {removed} N. Academy blvd, 201, Colorado Springs, CO 80910 http:\\interfacesone.fnhost.org
{removed}. I need a tech to help me get my web server up?So now you don't release the security breaches in windows 8. You mean to tell me that you can use Powershell - Using WMI to breach security in VB apps on the web by getting my file structures?
What is this all about?
1 Set VPN NIC Settings
2 Get Network Data from servers
Set VPN NIC Settings
$error.clear | out-null
cls
$ErrorActionPreference = "SilentlyContinue"
if ( $Args.Count -ne 1 ) { "
Not enough arguments
Usage :
script.ps1 server
"; exit }
$server = $Args[0].ToLower()
"We are working with $server"
$netAdapt = get-wmiobject -class Win32_NetworkAdapter -computer $server
if (!($netAdapt)) {
"Failed to connect to the target server!"
exit(5)
foreach ($card in $netAdapt) {
IF (!([string]::IsNullOrEmpty($card.NetConnectionID))) {
if ($card.NetConnectionID.CompareTo("VPN Virtual NIC") -eq 0) {
$myID = $card.DeviceID
$NAC = [wmi]"\\$server\root\cimv2:Win32_NetworkAdapterConfiguration.index='$myid'"
$guid=$NAC.settingID
"Setting DNS Toggles"
$dnsToggle = $NAC.SetDynamicDNSRegistration(0,0)
if ($dnsToggle) {
"Success"
} else {
"Failure"
$strShowNicKeyName = "SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\$guid\connection"
#$strShowNicKeyName
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $server)
$regKey= $reg.OpenSubKey("$strShowNicKeyName",$true)
$showIcon = $regKey.GetValue("ShowIcon")
if (!($showIcon -eq 1)) {
"The icon is hidden.. Setting it now"
$setIcon = $regKey.SetValue('ShowIcon',1,'DWORD')
} else {
"The icon is visible already."
"Script Ends"
Get Network Data from servers
$myfile = get-content servers.txt
echo "Server IPs Subnet GW" | out-file "Results.txt" -Append
foreach ($server in $myfile) {
Write-Host "Looking at $server"
$colitems = Get-WmiObject win32_NetworkAdapterConfiguration -computer "$server" -Filter 'IPEnabled = "True"' | select ipaddress,ipsubnet,index,defaultipgateway
foreach($objItem in $colItems) {
Write-Host ""
$myip = $objItem.IPAddress -join " "
$mySubnet = $objItem.IPSubnet
$myGW = $objItem.DefaultIPGateway
$temp = $objItem.index
$myid = Get-WmiObject win32_NetworkAdapter -computer "$server" -Filter "index = $temp" | select netconnectionid
$myid = $myid -replace "@{netconnectionid=",""
$myid = $myid -Replace "}",""
echo "$server $myip $mySubnet $myGW $myid"
echo "$server $myip $mySubnet $myGW $myid" | out-file "Results.txt" -Append
Is this possible on any machine with power shell and if so how is access done?
William Dunlap
Maybe you are looking for
-
Hi All, I have a scenario in which i am purchasing material from a vendor and this is transported by another transport vendor. I need to set this scenario in SAP. Do i need to create 2 Purchase order one for material vendor and another for transporte
-
Generic object services (GOS) - in Background
I have gone thru RM Tiwari blog regarding this.. My requirement is like .. I have a SAPScript and I want to attach this script to GOS in background(in pdf format). I know how to attach when we have a file on presentation server but donno how to do wh
-
Hi can anyone help, Crop problems in Lightroom
Whenever I work on a raw file in Lightroom 5 then open in CS5 for final tweaks the crops I made in Lightroom are not carried over into photoshop although all other corrections are. Am I doing something wrong! I work on a Mac and all software is up to
-
ı bought the newsweek magazine subscription and couldnt verify the mail so now when ı try to sign in my account it says authentication failed. ı took the bill so what will ı do now? How will I enter and download my magazine. thanks
-
Account Assignment WBS not updated in Service PR
Dear Expert I am creating Service Purchase Requisition from project but in Account Assignment only network is coming , our requirement is WBS as account assignment, in Account assignment tab WBS field is coming but WBs is not updating, pls suggest ,